2 Replies Latest reply on Feb 1, 2008 9:41 PM by neilac333

    Getting Next Page From <rich:datascroller>

    Novice

      Quick question:

      When the user scrolls to a page by clicking on a number in <rich:datascroller>, how can I get the desired page number to a MethodBinding expression?

      Currently, I am doing the following:

      <rich:datascroller for="searchResults"
       maxPages="100"
       rendered="#{not empty myAction.searchResults}"
       pageIndexVar="pageIndex"
       scrollerListener="#{myAction.setCurrentPage(pageIndex)}">
      </rich:datascroller>
      


      Note I am using the Seam extended EL here.

      Unfortunately, this just passes the current page rather than the desired scrolled-to page to the myAction component. As a result, the scroller just stays on the same page.

      Any insight on how to get the desired page to my component is very much appreciated.

      Thanks.