aspose file tools*
The moose likes JSF and the fly likes two rich:datascroller in one page, one works, the other doesn't Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "two rich:datascroller in one page, one works, the other doesn Watch "two rich:datascroller in one page, one works, the other doesn New topic
Author

two rich:datascroller in one page, one works, the other doesn't

ya ji
Ranch Hand

Joined: Jul 14, 2008
Posts: 40
The bottom datascroller works, but the top does not, who knows about it? thanks.

Code:
<rich:datascroller for="org_list_table" maxPages="10" align="right" reRender="bottomPageBar" id="topPageBar" />
<rich:spacer height="20" />
<rich:dataTable id="org_list_table" styleClass="userTable" rowClasses="userTableRow,userTableRowAlt" headerClass="userTableHeader" columnClasses="userTableColumn" value="#{organizations}" var="org" rows="6">

<rich:column>
<f:facet name="header">Name</f:facet>
<hutputText value="#{org.name}"/>
</rich:column>

<rich:column>
<f:facet name="header">Action</f:facet>
<h:commandLink action="#{OrganizationBean.selectEdit(org)}" value="Edit"/>
</rich:column>

</rich:dataTable>
<br clear="all" />
<rich:datascroller for="org_list_table" maxPages="10" align="right" id="bottomPageBar" reRender="topPageBar"/>
ya ji
Ranch Hand

Joined: Jul 14, 2008
Posts: 40
One more question:
How to hide the rich:datascroller when there is only one page? thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: two rich:datascroller in one page, one works, the other doesn't
 
Similar Threads
RichFaces with TabPanel and selectOneMenu not change the tab
Target component for id pan not found
NumberFormatException
Help with rich:datascroller
How to get checkbox value from datagrid.