Hi Kace, On Sat, May 17, 2008 at 9:31 PM, kace <[EMAIL PROTECTED]> wrote:
> > Hi, is this strictly for projects that use the displayTag or can it be > implemented for appfuse-jsf projects also? I've not used JSF before, but presumably it uses a Table or List for the Master screens. The example I gave uses an implementation of DisplayTags PaginatedList interface to get the desired functionality - perhaps if you swapped this out for something more generic, you could still use the Hibernate paging lookup DAO and Manager. I would suggest looking at using re-using Springs PagedListHolder object: http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/beans/support/PagedListHolder.html along with it's SortDefinition: http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/beans/support/SortDefinition.html Using these would achieve the same thing as extending DisplayTags PaginatedList. The only implementation detail that you'd then need to look at would be the helper object that decodes the request parameters, (what page, what sort direction and what sort property is requested). Hook that up to however JSF is displaying the List, and the UI is doing paging, and you should be on the right track. Cheers, Chris
