eXtremeComponents 的最后一页
近日研究eXtremeComponents的Limit 分页,按照网络上众多教程学习后,发现只有下一页没有最后一页,困惑许久。后来对eXtremeComponents 的API仔细研究后发现,网络上提供的大部分教程都是不能直接使用的,在一些最最关键但不容易发现的地方给你弄点小bug,其实仔细想想,人家做eXtremeComponents的不至于傻到做分页的,在分页的用的最多的地方弄个小bug的地步。所以就应该仔细想想。
这里做个记录吧。
其实很简单,如果你的也没有最后一页,按这个做就可以了
视图层都一样,这里只举个例子,主要为大家说明下面action层(Spring里面是Connenter层)。
<div style="padding-right: 5.4pt; padding-left: 5.4pt; background: #e6e6e6; padding-bottom: 4px; width: 95%; padding-top: 4px;">http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<f:view>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<f:loadBundle var="text" basename="#{departmentList.bundleName}"/>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<h:form id="editDepartment">
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif <ec:table
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif items="departmentList.departments"
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif action="${pageContext.request.contextPath}/hr/departments.html"
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif imagePath="${pageContext.request.contextPath}/images/table/*.gif"
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif title="${text['userList.title']}"
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif rowsDisplayed="10"
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif form="editDepartment" var="department"
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif retrieveRowsCallback="limit"
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif filterRowsCallback="limit"
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif sortRowsCallback="limit"
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif view="limit"
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif autoIncludeParameters="false">
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif <ec:row highlightRow="true">
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif <ec:column title="${text['department.name']}" property="name"/>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif </ec:row>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif </ec:table>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif</h:form>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif</f:view>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif
页:
[1]