Add sublist support for Pagination
----------------------------------

                 Key: DISPL-497
                 URL: http://jira.codehaus.org/browse/DISPL-497
             Project: DisplayTag
          Issue Type: Improvement
          Components: Paging/Sorting
    Affects Versions: 1.1.1
            Reporter: Kevin Conaway
             Fix For: 1.1.2
         Attachments: displ-497.patch

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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to