Yes, otherwise the F5 would not work. It can be prevented by redirecting to
a stateless page, even if it was the last accessed one.

2011/9/13 Bertrand Guay-Paquet <ber...@step.polymtl.ca>

> Hello,
>
> I have a stateless page with a stateless link on it. The stateless link is
> used to set the session locale and nothing more. In particular, it does not
> redirect to another page when clicked.
>
> On first access to the page, the url is: localhost/servlet/login
> After clicking on the stateless link, the url becomes something like:
> localhost/servlet/login?8-1.**ILinkListener-userPanel-en
>
> At this point, the page is now stateful. This is caused by the constructor
> PageProvider(IRequestablePage page) which has the following code:
>    if (pageInstance instanceof Page)
>    {
>        ((Page)pageInstance).**setStatelessHint(false);
>    }
>
> I don't understand why this is done. Is it because Wicket needs to make the
> page stateful since the URL now contains an action listener parameter?
>
> Is there a way to prevent the stateless page from becoming stateful?
>
> Cheers,
> Bertrand
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@wicket.**apache.org<users-unsubscr...@wicket.apache.org>
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos

Reply via email to