RE: setPageExpiredErrorPage only for certain pages?
Martijn, the page I'm talking about is already bookmarked but the problem arises when the user submits new data to that page and the list on that page should be updated. Andreas -Original Message- From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com] Sent: Sunday, February 14, 2010 5:05 PM To: users@wicket.apache.org Subject: Re: setPageExpiredErrorPage only for certain pages? How would you know which page was requested when the session has expired? The whole reason for the PageExpiredException is that wicket doesn't know which page was requested. Use bookmarkablepagelinks for links you don't want to expire. Martijn 2010/2/14 Major Péter majorpe...@sch.bme.hu: My guess would be to override RequestCycle#onRuntimeException and do your logic there if the exception is PageExpiredException. Regards, Peter 2010-02-14 13:54 keltezéssel, Andreas Lüdtke írta: In my WebApplication class I use setPageExpiredErrorPage(). So far, so good. But this happens also for the main/home page that everybody can access. I would like to redirect only the pages where a user has to login, not for the home page. If the homepage expires, a simple redirect to a new session with that page should be made. Is this possible with wicket? Andreas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 - To unsubscribe, e-mail: users-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
RE: setPageExpiredErrorPage only for certain pages?
Peter, I implemented my own RequestCycle and that did the trick. Thanks Andreas -Original Message- From: Major Péter [mailto:majorpe...@sch.bme.hu] Sent: Sunday, February 14, 2010 2:00 PM To: users@wicket.apache.org Subject: Re: setPageExpiredErrorPage only for certain pages? My guess would be to override RequestCycle#onRuntimeException and do your logic there if the exception is PageExpiredException. Regards, Peter 2010-02-14 13:54 keltezéssel, Andreas Lüdtke írta: In my WebApplication class I use setPageExpiredErrorPage(). So far, so good. But this happens also for the main/home page that everybody can access. I would like to redirect only the pages where a user has to login, not for the home page. If the homepage expires, a simple redirect to a new session with that page should be made. Is this possible with wicket? Andreas - To unsubscribe, e-mail: users-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
setPageExpiredErrorPage only for certain pages?
In my WebApplication class I use setPageExpiredErrorPage(). So far, so good. But this happens also for the main/home page that everybody can access. I would like to redirect only the pages where a user has to login, not for the home page. If the homepage expires, a simple redirect to a new session with that page should be made. Is this possible with wicket? Andreas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setPageExpiredErrorPage only for certain pages?
My guess would be to override RequestCycle#onRuntimeException and do your logic there if the exception is PageExpiredException. Regards, Peter 2010-02-14 13:54 keltezéssel, Andreas Lüdtke írta: In my WebApplication class I use setPageExpiredErrorPage(). So far, so good. But this happens also for the main/home page that everybody can access. I would like to redirect only the pages where a user has to login, not for the home page. If the homepage expires, a simple redirect to a new session with that page should be made. Is this possible with wicket? Andreas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setPageExpiredErrorPage only for certain pages?
How would you know which page was requested when the session has expired? The whole reason for the PageExpiredException is that wicket doesn't know which page was requested. Use bookmarkablepagelinks for links you don't want to expire. Martijn 2010/2/14 Major Péter majorpe...@sch.bme.hu: My guess would be to override RequestCycle#onRuntimeException and do your logic there if the exception is PageExpiredException. Regards, Peter 2010-02-14 13:54 keltezéssel, Andreas Lüdtke írta: In my WebApplication class I use setPageExpiredErrorPage(). So far, so good. But this happens also for the main/home page that everybody can access. I would like to redirect only the pages where a user has to login, not for the home page. If the homepage expires, a simple redirect to a new session with that page should be made. Is this possible with wicket? Andreas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org