Mr Mean wrote:
> 
> On Sun, May 11, 2008 at 9:04 AM, mfs <[EMAIL PROTECTED]> wrote:
>>
>>  Guys,
>>
>>  Firstly, Is that a right understanding that doing a browser-refresh of
>> the
>>  page would result in a new instance of the page being created everytime
>> and
>>  similarly a new model instance would be binded to the page.
> 
> Only if the page is stateless or if the url you refresh is a bookmarkable
> url.
> Otherwise the page instance is reused.
> 
> First, just to be sure, you mean BOTH, page-instance AND model-instance
> will be re-used ?
> Assuming the first is true, the rule is to make the pages non-bookmarkable
> (i.e. non- public constructors) ? in order to re-use the instance...but
> that alone wouldnt work..right one has to use the appropriate
> url-coding-strategy like u and johan suggested
> (HyBridURLCodingStrategy)..right ? >
> 
> 
>>  Is there a way one can use the same version of the page/model (which
>> wicket
>>  kept in the session) when the page was rendered the first time..
> 
> See previous answer.
> 
> See my response to Johan's post, i tried using HybridURLCodingStrategy but
> unfortunately, that still doesnt work...any clue..
> 
>>
>>  I would want to avoid a hit to the database on refresh (since my model
>>  construction requires so)
>>  --
>>  View this message in context:
>> http://www.nabble.com/Load-serialized-%28or-in-session%29-page-model-on-refresh..-tp17170105p17170105.html
>>  Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> Maurice
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Load-serialized-%28or-in-session%29-page-model-on-refresh..-tp17170105p17178903.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to