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.

        Activity

        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Ken Fyten made changes -
        Fix Version/s 3.0.RC1 [ 10300 ]
        Adnan Durrani made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Adnan Durrani made changes -
        Fix Version/s 2.1 [ 10241 ]
        Adnan Durrani made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Adnan Durrani made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Adnan Durrani made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Tyler Johnson made changes -
        Workaround Description To change the number of displayed rows, have a commandButton whose actionListener calls goToFirstPage.
        Workaround Exists [Yes]
        Tyler Johnson made changes -
        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 rows of data.
        2. Navigate to the 5th row.
        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.
        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.
        Ken Fyten made changes -
        Fix Version/s EE-1.8.2.GA_P04 [ 10280 ]
        Assignee Priority P2
        Assignee Adnan Durrani [ adnan.durrani ]
        Tyler Johnson made changes -
        Salesforce Case [5007000000JLeIc]
        Tyler Johnson made changes -
        Field Original Value New Value
        Attachment sc10607.war [ 13694 ]
        Tyler Johnson created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved: