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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to