4 Replies Latest reply on Dec 14, 2007 11:27 AM by Jason Long

    @Factory & Pagination

    Sven Mueller Newbie

      hi folks,

      i 've read many post in this forum but i didn't find an answer to my specific issue. I'm trying to do pagination together within the method annotated with @Factory. I tried the rich:dataScroller control and some other things like custom page links with params but i didn't get the pageindex of the requested page (if user paginates to another site). i need it in this method to fetch the items for the selected page. how could do that?

      ps: i've tried request params but i always got null:(


      
      class:
      
      @Factory("items")
      public List findItems() {
      
       ....use buisness method th retrieve items for listview
      
      }
      
      facelet:
      
      <rich:dataTable value="#{items} var="item" rows="10"...>
      ...
      </rich:dataTable>
      
      


      thanks in advance,
      sven