Issue Details (XML | Word | Printable)

Key: DISPL-497
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Reporter: Kevin Conaway
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
DisplayTag

Add sublist support for Pagination

Created: 16/Oct/07 10:29 AM   Updated: 16/Dec/07 04:07 PM   Resolved: 16/Dec/07 03:20 PM
Return to search
Component/s: Paging/Sorting
Affects Version/s: 1.1.1
Fix Version/s: 1.2

Time Tracking:
Not Specified

File Attachments: 1. Text File displ-497.patch (8 kB)


Testcase included: yes


 Description  « Hide
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.

Kevin Conaway made changes - 16/Oct/07 10:29 AM
Field Original Value New Value
Attachment displ-497.patch [ 29932 ]
fabrizio giustina added a comment - 16/Dec/07 03:20 PM
Committed for version 1.2, thanks for the patch!

fabrizio giustina made changes - 16/Dec/07 03:20 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
fabrizio giustina made changes - 16/Dec/07 04:07 PM
Status Resolved [ 5 ] Closed [ 6 ]