• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
<h:outputText 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One more question:
How to hide the rich:datascroller when there is only one page? thanks
reply
    Bookmark Topic Watch Topic
  • New Topic