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.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #26115 | Thu Oct 27 21:58:09 MDT 2011 | adnan.durrani | Fix for |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/datapaginator/DataPaginator.java
MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelseries/UISeries.java ADD /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/datapaginator/DataPaginatorGroup.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #26273 | Mon Nov 07 18:08:38 MST 2011 | adnan.durrani | Fix for |
Files Changed | ||||
MODIFY
/icefaces2/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/panelseries/UISeries.java
ADD /icefaces2/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/datapaginator/DataPaginatorGroup.java MODIFY /icefaces2/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/datapaginator/DataPaginator.java |