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,
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)
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