rich:dataScroller index refers previous dataTable scroller index inside
a4j:repeat
I am using rich:dataTable inside the a4j:repeat. Every time the dataTable
Scroller refer the index from the previous dataTable scroller index value.
So the current dataTable having values but it displays empty table.
Because of,
previous dataTable list size is 200. previous dataTable scroller index is 7
Current DataTable list size is 5.
<a4j:repeat value="#{Bean.outerTOList}" var="sampleValue">
<rich:dataTable id="dataTable"
var="innerTo"
rows="5"
value="#{sampleValue.sampleInnerTOList}" >
<f:facet name="header">
<rich:column>
<h:outputText value="Header"/>
</rich:column>
</f:facet>
<rich:column>
<h:outputText value="#{innerTo.name}"/>
</rich:column>
<f:facet name="footer">
<rich:datascroller id="dataTableScrollerId"
ajaxSingle="false" maxPages="3"
page="1">
</rich:datascroller>
</f:facet>
</rich:dataTable>
</a4j:repeat>
No comments:
Post a Comment