Re: How to throw new PageExpiredException?

2009-10-21 Thread Linda van der Pal
When I ran into this problem myself with 1.4-rc4, I remembered this message and upgraded to rc7. But I still get the Unexpected RuntimeException page instead of my custom SessionExpiredPage. Am I doing something wrong? Regards, Linda public class WicketApplication extends

Re: How to throw new PageExpiredException?

2009-07-16 Thread Ann Baert
://www.nabble.com/How-to-throw-new-PageExpiredException--tp24424791p24512117.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail

Re: How to throw new PageExpiredException?

2009-07-16 Thread Serkan Camurcuoglu
If all you want is to display a page expired page, maybe you could just use throw new RestartResponseException(PageExpiredErrorPage.class); in your page constructor. Ann Baert wrote: Can anyone help me with this problem please? Thanks in advance, Ann. Ann Baert wrote: I have

Re: How to throw new PageExpiredException?

2009-07-16 Thread Ann Baert
-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/How-to-throw-new-PageExpiredException--tp24424791p24512739.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: How to throw new PageExpiredException?

2009-07-16 Thread Linda van der Pal
A quote from Wicket in Action: = The three custom error pages can be set in the init method of your Application using the application settings. Here’s an example: @Override protected void init() { IApplicationSettings settings = getApplicationSettings();

Re: How to throw new PageExpiredException?

2009-07-16 Thread Ann Baert
- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/How-to-throw-new-PageExpiredException

Re: How to throw new PageExpiredException?

2009-07-16 Thread Major Péter
Which wicket version are you using? With 1.4-rc7 this behaviour should be fixed. Peter 2009-07-16 11:13 keltezéssel, Ann Baert írta: I do that already, see my previous post. But the PageExpiredException is wrapped into WicketRuntimeException, so that he doesn't come on those pages. Linda

Re: How to throw new PageExpiredException?

2009-07-13 Thread Ann Baert
, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/How-to-throw-new-PageExpiredException--tp24424791p24457324.html Sent from the Wicket - User mailing list archive at Nabble.com

How to throw new PageExpiredException?

2009-07-10 Thread Ann Baert
Hello, How can I throw a PageExpiredException in the constructor of my WebPage? Because the exception is wrapped by Wicket with WicketRuntimeException it goes to the InternalErrorPage. Thanks, Ann DISCLAIMER A HREF=http://www.tvh.be/newen/pages/emaildisclaimer.html;

Re: How to throw new PageExpiredException?

2009-07-10 Thread Igor Vaynberg
you can try unwrapping the exceptions in requestcycle.onruntimeexception and call super with the page exipred exception. -igor On Fri, Jul 10, 2009 at 3:00 AM, Ann Baertann.ba...@tvh.be wrote: Hello, How can I throw a PageExpiredException in the constructor of my WebPage? Because the

Re: How to throw new PageExpiredException?

2009-07-10 Thread James Carman
1.4-rc7 should fix this, no? On Fri, Jul 10, 2009 at 10:48 AM, Igor Vaynbergigor.vaynb...@gmail.com wrote: you can try unwrapping the exceptions in requestcycle.onruntimeexception and call super with the page exipred exception. -igor On Fri, Jul 10, 2009 at 3:00 AM, Ann

Re: How to throw new PageExpiredException?

2009-07-10 Thread Igor Vaynberg
not necessarily. we do not unwrap the exceptions to check for page expired generally, so if you throw it from your code we can catch it and wrap it in a WRE. -igor On Fri, Jul 10, 2009 at 8:32 PM, James Carmanjcar...@carmanconsulting.com wrote: 1.4-rc7 should fix this, no? On Fri, Jul 10,