Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1.1
-
Fix Version/s: 1.2
-
Component/s: Paging/Sorting
-
Labels:None
-
Testcase included:yes
Description
It is extremely helpful to be able to implement pagination through the java.util.List#subList(int,int) method when partial lists are being used.
Currently the tableIterator in TableTag always iterates over the first pageSize elements, no matter which page you're on. When using partial lists, this forces the client to implement the paging himself.
I've added a new class to return to compute subList indices (if they are available in the given list) based on the pageNumber and size of the list. This frees the caller from having to implement his own paging.
Currently the tableIterator in TableTag always iterates over the first pageSize elements, no matter which page you're on. When using partial lists, this forces the client to implement the paging himself.
I've added a new class to return to compute subList indices (if they are available in the given list) based on the pageNumber and size of the list. This frees the caller from having to implement his own paging.