Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
ya ji
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more question:
How to hide the rich:datascroller when there is only one page? thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic