Hi, No need to throw exceptions. You just need to return IRequestHandler impl that should be used to handle the error (I assume you talk about IRequestCycleListener#onException()) Try with: return new RenderPageRequestHandler(new PageProvider(SomePage.class))
On Wed, Dec 14, 2011 at 4:20 PM, Daniel Soneira <[email protected]> wrote: > Hi there, > > Throwing a RestartResponseException in a custom RequestCycleListener does > not yield the result I was hoping for. > Instead of redirecting to the specified page the DefaultExceptionMapper only > shows an Unexpected RuntimeException page. > The equivalent code (within a custom RequestCycle) used to work in 1.4. > > Here's the log: > ERROR - DefaultExceptionMapper - Unexpected error occurred > org.apache.wicket.RestartResponseException > > The listener tries do redirect the very FIRST request - so you have to > restart the jetty server when analyzing the problem. > > Attached you'll find a quickstart that demonstrates the problem. > Note: The code is essentially the same as in WICKET-3248. > > Any help on this matter is appreciated. > I can also create a JIRA issue if needed. > > Kind regards, > Daniel Soneira > -- > www.joyn-it.at > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
