Got it.
>On Jan 21, 2008 6:32 PM, <[EMAIL PROTECTED]> wrote:
>> I see. I guess I need to dig through more info on usage of api.
>> But I just noticed the following perhaps you can point out
>> surprising (to me) issue right away.
>> It is a simple list view display with
>>
>> class Test{
>> PageableListView listView = new PageableListView("records", new
>PropertyModel(this, "records"),
>> rowsPerPage) {
>> public void populateItem(final ListItem listItem) {
>> final Object record = listItem.getModelObject();
>>
>> public List getRecords(){
>> return <a record list from db query>
>> }
>>
>> }
>
>The idea behind PageableListView is that it is backed by a list that
>understands how to page. See for instance
>http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/branches/WICKET_1_2
>/wicket-contrib-data/src/java/wicket/contrib/data/model/PageableList.java?view=
>markup
>
>However, nowadays IDataProvider and the repeaters that use it are a
>better alternative to PageableListViews, amongst other reasons because
>the paging is more explicit.
>
>Eelco
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]