different page expired error page?

2012-12-10 Thread Karsten Gaul

Hi,

is there a way to have different page expiry error pages? For my app I 
would like to redirect browsing users (not logged in) to a real error 
page which is plain and simple but logged in users should be redirected 
to the login page on session timeout.


Thanks,
Karsten

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



Re: different page expired error page?

2012-12-10 Thread Martin Grigorov
Hi,

See org.apache.wicket.request.cycle.AbstractRequestCycleListener#onException
With this you can return RenderPageRequestHanlder specific for any type of
exception.


On Mon, Dec 10, 2012 at 11:37 AM, Karsten Gaul karsten.g...@exedio.comwrote:

 Hi,

 is there a way to have different page expiry error pages? For my app I
 would like to redirect browsing users (not logged in) to a real error page
 which is plain and simple but logged in users should be redirected to the
 login page on session timeout.

 Thanks,
 Karsten

 --**--**-
 To unsubscribe, e-mail: 
 users-unsubscribe@wicket.**apache.orgusers-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/


Re: different page expired error page?

2012-12-10 Thread Karsten Gaul

Hi,

and sorry. Forgot to mention that I'm using wicket 1.4.21 so I was 
trying to override 
AbstractRequestCycleProcessor#respond(RuntimeException e, RequestCycle 
requestCycle) and on second thought I guess overriding 
RequestCycle#onRuntimeException should do the trick. I'll give it a try.


Thanks,
Karsten


Am 10.12.2012 12:14, schrieb Martin Grigorov:

Hi,

See org.apache.wicket.request.cycle.AbstractRequestCycleListener#onException
With this you can return RenderPageRequestHanlder specific for any type of
exception.


On Mon, Dec 10, 2012 at 11:37 AM, Karsten Gaul karsten.g...@exedio.comwrote:


Hi,

is there a way to have different page expiry error pages? For my app I
would like to redirect browsing users (not logged in) to a real error page
which is plain and simple but logged in users should be redirected to the
login page on session timeout.

Thanks,
Karsten

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







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