Details
-
Type: Bug
-
Status: Closed
-
Priority: 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.
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.
Command: Commit
Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\datapaginator\DataPaginator.java
Adding: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\datapaginator\DataPaginatorGroup.java
Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\panelseries\UISeries.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\panelseries\UISeries.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\datapaginator\DataPaginatorGroup.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\datapaginator\DataPaginator.java
Completed: At revision: 26115