Hi,

See inline

On Tue, Apr 12, 2011 at 12:05 PM, Ian Marshall <ianmarshall...@gmail.com>wrote:

> I have two questions - a minor one then my main one.
>
> Minor question
> --------------
> Am I correct that the calls
>
>  PageParameters params = ...
>  MyPage pgNext = new MyPage(PageParameters params);
>  setResponsePage(pgNext);
>
> result in the creation of a session-relative page, whereas the calls
>
Yes.

>
>  PageParameters params = ...
>  setResponsePage(MyPage.class, params);
>
> result in the creation of a bookmarkable page?
>
Yes

>
>
> Main question
> -------------
> My WebPage has one Form, the model of which is wrapped in a
> LoadableDetachableModel (LDM). This LDM nulls most, but not all, of its
> data.
>
> If this page is called into being in a bookmarkable way, would I be correct
> to think that none of this page's LDM's data would be stored in the user's
> session (in a PageMap or otherwise)?
>

Bookmarkable URL means that a *new* instance of the page will be loaded
every time
a request comes. I.e. completely new Form with new LDM will be created for
this new page. The old ones are not used at all.
You can transfer state only by using page parameters.

>
>
> Regards,
>
> Ian Marshall
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Models-in-a-bookmarkable-page-tp3444176p3444176.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to