Re: Throwing RestartResponseException within RequestCycleListener [1.5 - incl. quickstart]

2011-12-14 Thread Martin Grigorov
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,

Re: Throwing RestartResponseException within RequestCycleListener [1.5 - incl. quickstart]

2011-12-14 Thread Daniel Soneira
The code doing the redirect implements IRequestCycleListener#onBeginRequest - which returns void. Here's the code snippet: @Override public void onBeginRequest(RequestCycle cycle) { Session session = Session.get(); if (session.getMetaData(REDIRECTED_JSESSIONID) == null)

Re: Throwing RestartResponseException within RequestCycleListener [1.5 - incl. quickstart]

2011-12-14 Thread Daniel Soneira
OK, I've managed to get rid of all exceptions that were logged. Here's the working code: @Override public void onBeginRequest(RequestCycle cycle) { Session session = Session.get(); if (session.getMetaData(REDIRECTED_JSESSIONID) == null) { logger.debug(first