Using setResponsePage(Page) wont work. This will create url like:
.../wicket/page?6 and there is no way to find what is the type of the
page behind this url. Using setResponsePage(Class) the url will be
.../pageB and this is what is needed to find out which Page
implementation to use after session expiration.

You can put the parameters in the Session instead of in
PageParameters. This way the url will be ../pageB without parameters.
And in PageB's constructor you will read the saved params and clear
them. Just an idea.

On Sun, Apr 1, 2012 at 4:54 AM, sudeivas <sureshkumar....@gmail.com> wrote:
> Most often we don't want users to see the parameters in the URL. But when I
> tried using
> setResponsePage(PageA.class, pageParameters) and after mounting the page in
> my application I see the parameters in the URL.
>
> So I was referring to
>
> http://stackoverflow.com/questions/6390953/how-can-i-create-a-wicket-url-that-hides-its-parameters
>
> and found that we can mount pages without showing the parameters in the URL.
>
> My question is what will happen when session expires. After setting
> setRecreateMountedPagesAfterExpiry(true), will it be able to recreate the
> page from mountedPages because the URL will not be having the parameters.
>
> Basically I want to achieve setRecreateMountedPagesAfterExpiry(true) and
> also want to hide parameters from the user.
>
> Please advise.
>
> Thanks,
> Suresh
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Version-Pages-by-default-tp4520432p4522696.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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to