File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Soft Skills this week in the Jobs Discussion 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