As far as I know hibernate cannot page transparently, if it could there would be no need for the pagedlist class with black magic inside. Also, hibernate should not be the only persistence interface considered, there are plenty more in use right now that are not as advanced.
I have a couple of concerns with using lists, so here they are for your consideration: 1) lists are index based, most lists that webapps deal with are primary key based. The default implementation of an index based approach leads to bugs that are not always apparent when using detachable models. Good frameworks try to force users to use best practices. 2) in order to use primary keys we need to translate an object into a pk-based model. Currently this is done by overriding a method in a listview, however, this is a horizontal concern and should be separated. 3) a more concrete interface makes it a lot clearer to see what is needed. Interface ListViewDatasource { List getItems(first, count); int getTotalItemCount(); Imodel getObjectModel(Object o) } presents a much clearer picture as to what needs to be done and how listview works. Thanks, Igor --- Previous Message --- we've had this conversation at least a couple of times. while it's possible that wicket listviews could have a better model object somehow (and then provide an adaptor for existing list-based code), we should be careful not to go crazy with features we don't really need. less is always more. what i liked originally about lists is that they are an existing java data structure that everyone already understands and that hibernate knows how to page transparently. there's something very appealing about a list view being a view of a List. and remember, the List interface is as easy to implement as this: new AbstractList() { public Object get(int index) { return null; } public int size() { return 0; } }; ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user