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

}               

what I noticed that for each populateItem call, it would invokes
getRecords() (perhaps with further indexing). So it I have 1000 records
in db, it would issue 1000 query for the same result list.
What I am doing wrong here? I basically took an example class from wicket 
website and replace the fixed record list with a db query and
could not explain the extreem slowness until I found out this problem.


>you are free to write your own coding strategy that checks for
>existence of these pages in session before creating a new instance.
>
>-igor
>
>
>On Jan 21, 2008 6:01 PM,  <[EMAIL PROTECTED]> wrote:
>> > Would it be possible to turn a bookmarkale/stateless page object
>> > into a stateful page during a session once user first access it.
>>
>> these pages are not created until accessed...so not sure what you mean
>>
>> >> I meant once they are created, accessing it again (say hit refresh button 
>on browser) should
>> not result in a new page object recreation, instead using a way to
>> locate the previous created object and rerender it as in a stateful
>> page.
>>
>>
>> ---------------------------------------------------------------------
>> 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]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to