Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 1.0
-
Fix Version/s: 1.1
-
Component/s: Tag Library
-
Labels:None
-
Application server:IBM WebSphere 5.1
Description
When going through a list of 236 items with 15 rows per page the header shows only the page numbers upto 15 (instead of 16). Using the "next" functionality you can go to the last page, but then no "current page" is displayed.
startPage = Math.max(Math.min(this.currentPage - groupSize / 2, this.pageCount - groupSize), 1);
To get the correct results this should be changed to:
startPage = Math.max(Math.min(this.currentPage - groupSize / 2, this.pageCount - groupSize + 1), 1);