7 Replies Latest reply on Mar 16, 2007 6:12 AM by Denis Bulahov

    Problems with rich:datascroller

    Michael Schuetz Newbie

      Hi,
      i just tried out the rich:datascroller example from RichFaces LiveDemo, but i doesn't work correctly. The datascroller is available, but without displaying page numbers and therefore quite useless.

      Here's the code:

      <h:form>
      
       <rich:datascroller for="companyList" maxPages="20" />
      
       <rich:spacer height="10" />
      
       <rich:dataTable id="companyList" value="#{assignedCompanies}"
       var="aCompany"
       onRowMouseOver="this.style.backgroundColor='#{a4jSkin.headerBackgroundColor}'"
       onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
       rendered="#{assignedCompanies.rowCount != 0}">
      
       <f:facet name="header">
       <rich:columnGroup>
       <h:column>
       <h:outputText value="Unternehmen" />
       </h:column>
       <h:column>
       <h:outputText value="ILN" />
       </h:column>
       <h:column>
       <h:outputText value="Bereich" />
       </h:column>
       </rich:columnGroup>
       </f:facet>
      
       <h:column>
       <s:link value="#{aCompany.displayName}"
       action="#{company.openCompany(aCompany)}" />
       </h:column>
       <h:column>
       <h:outputText value="#{aCompany.globalLocationNumber}" />
       <h:outputText value="nicht vorhanden"
       rendered="#{aCompany.globalLocationNumber == null}" />
       </h:column>
       <h:column>
       <h:outputText value="#{aCompany.systemScope}"
       converter="SystemScopeDisplayConverter" />
       </h:column>
       </rich:dataTable>
       <br />
       <s:link value="Neues Unternehmen anlegen"
       view="/user/createCompany.jsf" />
       </h:form>


      Thank you
      Michael