rich:dataScroller RF 4.2.0 not working
fipp Mar 27, 2012 9:53 AMhy,
i'am nearly stuck on working with RF 4.2.0:).
Next problem i am facing is rich:dataScroller in a rich:dataTable.
<ui:composition
template="/META-INF/templates/headerFooterTemplate.xhtml">
<ui:define name="content">
<h:form>
<rich:dataTable value="#{toolListBean.toolList}" var="tool"
id="toolsTable" rows="2" rowClasses="even-row,odd-row"
styleClass="stable" sortMode="multi">
<rich:column sortBy="#{tool.toolNumber}"
sortOrder="#{toolsSortingBean.numberAsStringOrder}">
<f:facet name="header">
<a4j:commandLink value="String Number" render="toolsTable@body"
action="#{toolsSortingBean.sortNumberAsString}" />
</f:facet>
<h:outputText value="#{tool.toolNumber}" />
</rich:column>
<rich:column sortBy="#{tool.toolComment}"
sortOrder="#{toolsSortingBean.commentsOrder}">
<f:facet name="header">
<a4j:commandLink value="Kommentar" render="toolsTable@body"
action="#{toolsSortingBean.sortByComments}" />
</f:facet>
<h:outputText value="#{tool.toolComment}" />
</rich:column>
<f:facet name="footer">
<rich:dataScroller for="toolsTable"/>
</f:facet>
</rich:dataTable>
</h:form>
</ui:define>
</ui:composition>
! Therea is also a h:form Tag in the File headerFooterTemplate.xhtml.
The Problem is the rich:dataScroller does not work properly.I can scroll only from page 1 to page 2 ( The Page content change correcty from page 1 to page 2) but not further .Scrolling back is not possible.I Can manually select page 3 or 4. But when i click the back arrow always page 2 is selected.
if i add a bean in code (initialise curPage with 1 and add getter and setter) the scrolling works fine. (but not togehther with filters)
<rich:dataScroller for="toolsTable" page="#{toolListBean.curPage}" >
can anybody tell me why i've to add page="#{toolListBean.curPage}" that the rich:dataScroller works????
thanks
fipp