*
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 Android Security Essentials Live Lessons this week in the Android 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: two rich:datascroller in one page, one works, the other doesn't
 
Similar Threads
NumberFormatException
Target component for id pan not found
RichFaces with TabPanel and selectOneMenu not change the tab
Help with rich:datascroller
How to get checkbox value from datagrid.