7 Replies Latest reply on Jan 29, 2008 5:22 PM by neilac333

    Using rich:datascroller With Hibernate Pagination on Server

    neilac333 Novice

      I prefer to handle all my pagination on the server with Hibernate, but I also want to use the <rich:datascroller> component. My Seam component "knows" the following information:

      1) The total number of page results
      2) The current page of results
      3) The desired number of results per page

      I am using rich:datascroller like this:

      <rich:datascroller for="searchResults"
      maxPages="100"
      pagesVar="#{searchAction.totalPages}"
      pageIndexVar="#{searchAction.currentPage}"
      rendered="#{not empty searchAction.searchResults}" />
      


      Yet when I try to use it, I am getting a scroller with no numbers for the pages and is disabled. It is like the scroller thinks that all the results are on this one page.

      How do I use rich:datascroller with the information I have in my Seam component to facilitate pagination?

      Thanks.