You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Dale Ogilvie <Da...@trimble.com> on 2012/05/15 06:52:02 UTC

Passing query string data from an expired page to the expiry page

Hi there,

We use:
getApplicationSettings().setPageExpiredErrorPage(MyExpiredPage.class);

When MyExpiredPage is rendered, we want it customized according to a
query string parameter on the previous page.

Any tips on the best way we can determine the previous page parameters,
given that session is gone?

Thanks

Dale

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


Re: Passing query string data from an expired page to the expiry page

Posted by vineet semwal <vi...@gmail.com>.
i have not used 1.4 in a long time .. you can still do all the same
thing in your requestcyle#onruntimeexception(*) in 1.4,also you can
get the query parameters  from requestcyle#getrequest() .

On Thu, May 17, 2012 at 3:02 AM, Dale Ogilvie <Da...@trimble.com> wrote:
> Thanks for your suggestion. I forgot to mention our app is wicket 1.4. I
> could not find the code below for RequestCycleListener. WebApplication
> does not have a collection of RequestCycleListeners per 1.5, as far as I
> could see.
>
> Basically our app has "branding" based on a url parameter passed to each
> page. The session expiry page does not receive this parameter. Ideally
> we want to brand the expiry page, to do this we need the parameters from
> the "expired" page.
>
> Any more pointers?
>
>> -----Original Message-----
>> From: vineet semwal [mailto:vineetsemwal1982@gmail.com]
>> Sent: Tuesday, 15 May 2012 6:44 p.m.
>> To: users@wicket.apache.org
>> Subject: Re: Passing query string data from an expired page to the
> expiry
>> page
>>
>> you can create a requestcyclelistener which on exception checks if
> it's a
>> pageexpiredexception if it's you can get client url or
> requestparameters there
>> from the request which you can pass to your errorpage ,just create an
>> appropriate pagerquesthandler at that time .
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
thank you,

regards,
Vineet Semwal

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


RE: Passing query string data from an expired page to the expiry page

Posted by Dale Ogilvie <Da...@trimble.com>.
Thanks for your suggestion. I forgot to mention our app is wicket 1.4. I
could not find the code below for RequestCycleListener. WebApplication
does not have a collection of RequestCycleListeners per 1.5, as far as I
could see.

Basically our app has "branding" based on a url parameter passed to each
page. The session expiry page does not receive this parameter. Ideally
we want to brand the expiry page, to do this we need the parameters from
the "expired" page.

Any more pointers?

> -----Original Message-----
> From: vineet semwal [mailto:vineetsemwal1982@gmail.com]
> Sent: Tuesday, 15 May 2012 6:44 p.m.
> To: users@wicket.apache.org
> Subject: Re: Passing query string data from an expired page to the
expiry
> page
> 
> you can create a requestcyclelistener which on exception checks if
it's a
> pageexpiredexception if it's you can get client url or
requestparameters there
> from the request which you can pass to your errorpage ,just create an
> appropriate pagerquesthandler at that time .


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


Re: Passing query string data from an expired page to the expiry page

Posted by vineet semwal <vi...@gmail.com>.
you can create a requestcyclelistener which on exception checks if
it's a pageexpiredexception if it's you can get client url or
requestparameters there from the request which you can pass to your
errorpage ,just create an appropriate pagerquesthandler at that time .

On Tue, May 15, 2012 at 10:22 AM, Dale Ogilvie <Da...@trimble.com> wrote:
> Hi there,
>
> We use:
> getApplicationSettings().setPageExpiredErrorPage(MyExpiredPage.class);
>
> When MyExpiredPage is rendered, we want it customized according to a
> query string parameter on the previous page.
>
> Any tips on the best way we can determine the previous page parameters,
> given that session is gone?
>
> Thanks
>
> Dale
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
thank you,

regards,
Vineet Semwal

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