That is definitly another possiblity. I figured mine was easier on the end user since you can still use any kind of collection you want, and then just specify the total size of your results. I use hibernate for my data layer and almost all results are returned as a normal list, so I would have to convert that list to an implementation of your interface to get it to work, which seems like more effort. I've been using my method now for a solid week and its been working great. Truly to switch to server paging the only thing you need to give the displaytag with my patch is the object containing the full size of the list... which ought to be simple to obtain.
-David > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:displaytag- > [EMAIL PROTECTED] On Behalf Of Fabrizio Giustina > Sent: Sunday, July 10, 2005 3:23 PM > To: displaytag-devel@lists.sourceforge.net > Subject: Re: [displaytag-devel] External Sorting and Pagination Redux > > On 7/10/05, David Erickson <[EMAIL PROTECTED]> wrote: > > Fab did you get a chance to look over the patch I submitted yet? > > -David > > Working on it... > looks pretty good, but I am still trying to evaluate a different > approach in order to pass the full list size: instead of a separate > tag attribute I will probably end up in defining an interface with a > getter for the full list size and the current sublist. That's what > usually you do when returning paginated list from a data layer so it > should probably be easier to integrate: displaytag could automatically > understand if a list is partial simply checking if the source object > implements this interface... > thoughts? > > fabrizio > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by > HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > displaytag-devel mailing list > displaytag-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/displaytag-devel ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel