Igor Vaynberg wrote:
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);
ListView doesn't have sort order/filter info.
That is something a that should be held in the model not in a component if it could i think.
So setting a sort order would be:
((YoureModel)ListView.getModel().setSortOrder(xxx)
at least in my eyes
        // 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);
for that we have a method on ListView:
protected IModel getListItemModel(final IModel listViewModel, final int index)


johan



-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to