DisplayTag

Add sublist support for Pagination

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major 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.

Activity

Hide
fabrizio giustina added a comment -
Committed for version 1.2, thanks for the patch!
Show
fabrizio giustina added a comment - Committed for version 1.2, thanks for the patch!

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: