You can put two things into the ListView: a direct IList implementation, or a IModel backed list. The latter is the preferred way in Wicket.

The PageableList model is in the wicket-contrib-data package. You can download it from the wicket-stuff project. There you can find ISelectCountAndListAction, PageableList and PersistentObjectModel. These are what you are looking for.

Wicket doesn't impose any persistence framework onto anybody. That is why we didn't put this in the core. As you can see on the Wicket Stuff project, there is some support for Hibernate, and I know that some people are looking into Cayenne, and JDO (max?). Don't know how that is going though.

Links:
   Wicket-stuff : http://wicket-stuff.sourceforge.net
   downloads: http://sourceforge.net/project/showfiles.php?group_id=134391

Martijn



Vjeran Marcinko wrote:

Hi.

Since I'm total newbie, I'm having hard time to grasp Wicket's way...
Paged loop is very common thing, and it usually requires from user to supply implementation in a form of "model" interface as :
int getTotalCount();
List getRows(int offset, int limit);

, but looking at PageableListView I don't see anything like that? As far as I see, I can only provide whole List which is unacceptable for real applications...

One more qestion (nothing related to above) - what is the way to control arbitrary attribute value of arbitrary HTML tag? Let's say I want to generate value of "bgcolor" attribute of some <td> tag ?


Regards,
Vjeran



-------------------------------------------------------
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




-------------------------------------------------------
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