1 Reply Latest reply on Mar 17, 2009 7:12 AM by nbelaevski

    Database Pagination with RichFaces

      Hi everyone , I'm using richfaces 3.3.0 with JSF 1.2 , so far so good. I've just created a simple listing page with the rich:dataTable tag:

      <rich:dataTable rowClasses="row1,row2" rows="3" value="#{pessoaBean.pessoasCadastradas}"
       var="person">
       <f:facet name="header"> Titulo Tabela </f:facet>
       <f:facet name="caption"> Caption da tabela </f:facet>
      
       <rich:column>
       <f:facet name="header"> Nome </f:facet>
       <h:outputText value="#{person.nome}" />
       </rich:column>
       <f:facet name="footer">
       <rich:datascroller selectedStyle="font-weight:bold"/>
       </f:facet>
      
      </rich:dataTable>


      Everything is working just fine, including the pagination with the rich:datascroller tag.
      But as far as I know, the rich:datascroller is paginating only virtually, since all the data (my 10 thousand records) are alreadly fetched.
      My question is, how can I integrate the datascroller (or any other component) with a physical pagination mechanism like hibernate's in order to just fetch the row number of records per click on the datascroller
      Thanks !