1 Reply Latest reply on Nov 10, 2008 11:07 PM by Nick Belaevski

    datascroller working with dataDefinitionList/datatable issue

    Joe O'Toole Newbie

      Hi

      I used the datascroller in conjunction with the dataDefintionList to achieve pagination for search results.

      If I search for an item which has 10 pages of results, clicking on page 1,2,...,10 works fine. However, if I click on >> it loads page 7 of the search results. However, the >> control works perfect after this. I am wondering if anyone else has come upon this.

      I have also noted this behavior using the datascroller in conjunction with a datatable. Like I say, the >> control works fine after the first usage. Why it jumps to page 7(generally) on the first usage of it I don't know.

      Thanks
      Joe

      <rich:datascroller for="calendarEntries"
      binding="#{calendarController.dataScroller}"
      maxPages="#{calendarController.maxPages}" fastControls="show"
      pagesVar="#{calendarController.pageCount}"
      pageIndexVar="pageIndex" pages="page"
      page="#{calendarController.currentPage}" boundaryControls="show"
      renderIfSinglePage="false" reRender="tableDisplayMode"
      tableStyleClass="dataScroller" selectedStyleClass="active"
      inactiveStyleClass="inActive"
      actionListener="#{calendarController.viewPageActionListener}">

      </rich:datascroller>



      <rich:datascroller for="listDisplayMode"
      maxPages="#{searchController.maxPages}"
      fastControls="show"
      pagesVar="#{searchController.pageCount}"
      pageIndexVar="pageIndex"
      pages="page"
      page="#{searchController.currentPage}"
      boundaryControls="show"
      renderIfSinglePage="false"
      reRender="listDisplayMode"
      tableStyleClass="dataScroller"
      selectedStyleClass="active"
      inactiveStyleClass="inActive"
      actionListener="#{searchController.viewPageActionListener}"
      rendered="#{searchController.searchReturned and sessionController.listDisplayMode}">

      </rich:datascroller>