在使用icefaces(1.8.2)的旧系统中,我有一张桌子。通常在这张桌子下面我有分页器。现在,我希望同一分页器不仅显示在表格的底部,而且显示在顶部。 我有一个下拉菜单,从中可以选择“ rowsPerPage”。当前值存储在控制器中。当我想导航到下一页/上一页时,我完全没有问题。当我想从顶部分页器更改行时,就会出现问题。当我更改值时,将调用设置器并将其设置为控制器,但随后也会调用底部的设置器并将其设置为先前的值。因此,最后我无法从顶部分页器更改它。我不知道如何防止第二个二传手被叫来或以某种方式强制刷新。
<ice:dataPaginator id="test" for="stakeholdersList" paginator="true" rowsCountVar="rowsCount" firstRowIndexVar="firstRowIndex" paginatorMaxPages="5" lastRowIndexVar="lastRowIndex" style="width: 140px; float:left;">
<f:facet name="first"><img src="/PlanManage/images/kostenverwaltung/control_start_blue.png" alt="Erstes" /></f:facet>
<f:facet name="previous"><img src="/PlanManage/images/kostenverwaltung/control_rewind_blue.png" alt="Vorheriges" /></f:facet>
<f:facet name="next"><img src="/PlanManage/images/kostenverwaltung/control_fastforward_blue.png" alt="Nächstes" /></f:facet>
<f:facet name="last"><img src="/PlanManage/images/kostenverwaltung/control_end_blue.png" alt="Letztes" /></f:facet>
<ice:outputFormat style="padding: 10px;" value="#{msg.pager_stakeholders}">
<f:param value="#{rowsCount}"/>
<f:param value="#{firstRowIndex}"/>
<f:param value="#{lastRowIndex}"/>
</ice:outputFormat>
</ice:dataPaginator>
<ice:panelGroup style="float: left;">
<div id="rowsPerPage1">
<ice:outputText value="#{msg.label_proseite}"/>
<ice:selectOneMenu value="#{StakeholdersController.rowsPerPage}" onchange="testit(this);" partialSubmit="true">
<f:selectItems value="#{StakeholdersController.rowsPerPageItems}"/>
</ice:selectOneMenu>
</div>
</ice:panelGroup>
<ice:dataTable value="#{StakeholdersController.stakeholders}" id="stakeholdersList" var="stakeholder"
rows="#{StakeholdersController.rowsPerPage}"/>
->
<ice:panelGroup style="display: block; margin-top: 20px; margin-bottom: 20px; margin-left: 10px; " >
<ice:dataPaginator id="paginator" for="stakeholdersList" paginator="true" rowsCountVar="rowsCount" firstRowIndexVar="firstRowIndex" paginatorMaxPages="5" lastRowIndexVar="lastRowIndex" style="width: 140px; float:left;">
<f:facet name="first"><img src="/PlanManage/images/kostenverwaltung/control_start_blue.png" alt="Erstes" /></f:facet>
<f:facet name="previous"><img src="/PlanManage/images/kostenverwaltung/control_rewind_blue.png" alt="Vorheriges" /></f:facet>
<f:facet name="next"><img src="/PlanManage/images/kostenverwaltung/control_fastforward_blue.png" alt="Nächstes" /></f:facet>
<f:facet name="last"><img src="/PlanManage/images/kostenverwaltung/control_end_blue.png" alt="Letztes" /></f:facet>
<ice:outputFormat style="padding: 10px;" value="#{msg.pager_stakeholders}">
<f:param value="#{rowsCount}"/>
<f:param value="#{firstRowIndex}"/>
<f:param value="#{lastRowIndex}"/>
</ice:outputFormat>
</ice:dataPaginator>
<ice:panelGroup style="float: left;">
<div id="rowsPerPage">
<ice:outputText value="#{msg.label_proseite}"/>
<ice:selectOneMenu value="#{StakeholdersController.rowsPerPage}" partialSubmit="true">
<f:selectItems value="#{StakeholdersController.rowsPerPageItems}"/>
</ice:selectOneMenu>
</div>
</ice:panelGroup>
</ice:panelGroup>