ICEfaces
  1. ICEfaces
  2. ICE-7378

Paginator.goToFirstPage not navigating to first page in UI

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-1.8.2.GA_P03
    • Fix Version/s: 3.0.RC1, 3.0, EE-1.8.2.GA_P04
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      -
    • Assignee Priority:
      P2
    • Workaround Exists:
      Yes
    • Workaround Description:
      To change the number of displayed rows, have a commandButton whose actionListener calls goToFirstPage.

      Description

      The customer would like to programmatically navigate to the first page of the paginator when changing the number of displayed rows in the table. For example:

      1. The table has 100 rows. Choose to display 20 rows. The paginator will show 5 pages of data.
      2. Navigate to the 5th page.
      3. Now change the number of rows to 5 which will fire a valueChangeListener. The data changes but even though goToFirstPage was called, you are still on the 5th page of that new data.
      4. Select 5 rows, same thing.

      Here is what I am observing server side:

      1. Number of rows initially set to 20. Paginated to page 5.

      PageIndex: 5
      PageCount: 5
      RowCount: 100
      Rows: 20

      2. Selected 5 rows to display

      PageIndex: 5
      PageCount: 20
      RowCount: 100
      Rows: 5

      ***** GoToFirstPage called *******

      PageIndex: 1
      PageCount: 20
      RowCount: 100
      Rows: 5

      The paginator is stuck on page 5 even though the pageIndex is set to 1 in the paginator component.

        People

        • Assignee:
          Adnan Durrani
          Reporter:
          Tyler Johnson
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: