[richfaces-issues] [JBoss JIRA] (RF-12289) ataScroller - change displayed rows numbers - below table
Nicolas Daniels (JIRA)
jira-events at lists.jboss.org
Thu May 24 12:11:17 EDT 2012
Nicolas Daniels created RF-12289:
------------------------------------
Summary: ataScroller - change displayed rows numbers - below table
Key: RF-12289
URL: https://issues.jboss.org/browse/RF-12289
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.2.2.Final, 4.2.1.Final
Reporter: Nicolas Daniels
Trying to have datascroller with dynamic rows number, but it works only if dataScroller is above the table.
Basically, what I have is:
<h:selectOneMenu value="#{myBean.batchRows}">
<f:selectItem itemLabel="10" itemValue="10"/>
<f:selectItem itemLabel="20" itemValue="20"/>
<f:ajax render="table table-ds" />
</h:selectOneMenu>
...
<h:panelGroup>
<rich:dataTable id="table" rows="#{myBean.batchRows}" value="#{myBean.dataModel}" var="var">
...
</rich:dataTable>
</h:panelGroup>
<rich:dataScroller id="table-ds" page="#{myBean.batchPage}" for="table" renderIfSinglePage="false" boundaryControls="hide" fastControls="hide">
...
</rich:dataScroller>
And the behaviour with 21 elements:
- on page 2 displaying 20 element (so only 1 is visible), if I switch to 10, I stay on page 2 but I still have only 1 element visible.
If my datascroller is above my table it works fine. If the table is not wrapped within a panelGroup, it works as well.
Debugging a bit, it seems that when UIDataAdaptor.walk method is 1st called, getComponentState() is updating the state rows and first properties with values:
- rows: 10 (correct)
- first: 20 (weird)
Following calls to this method is setting those properties to:
- rows: 10 (correct)
- first: 10 (correct)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list