What quickly comes to mind is interface datasource {
long count(); // access to lv would allow retrieval of sort order/filter info list retrieve(int first, int count, ListView lv); // not sure how these 2 would work of if they are necessary, but maybe they can help to eliminate index based approach serializable objecttoid(object obj); object idtoobject(serializable id); } I wish I had enough time right now to create an example and confirm that something like this would work and/or is adequate, but I have meetings all day starting in 10 mins ;( maybe tomorrow. Igor > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Eelco Hillenius > Sent: Friday, July 22, 2005 8:45 AM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Newbie confused about PageableListView > > Any concrete proposals? > > Eelco > > > Igor Vaynberg wrote: > > >You can provide an interface AND easily support collections > because it > >is very easy to wrap them. The constructor that takes a List > interface > >can wrap that into the internal interface, we shouldn't have > to do this > >the other way around. > > > >There is also an impedence mismatch with using lists, webapps cannot > >depend on the index of an object in a list to identify the object. > >ListView uses the index to identity an element by default > and you have > >to override it to make it use the pk. I think this is a very bad > >practice as this is not an obvious problem. Tapestry > interfaces provide a reverse lookup method. > > > >Igor > > > > > > > > > > ------------------------------------------------------- > 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 > > ------------------------------------------------------- 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