Hi all,
pls is there a way to react to certain type of exceptions and redirect
the request to a page?
I think I saw somathing, but I can't find it.
I can't wrap it in RestartResponseAtInterceptPageException as in my
case it's thrown from within Wicket's code.
So, I'm looking for something like
getApplicationSettings.setExceptionMapper( new ExceptionMapper()
// Type,
Destination
.add( Exception.class,
ExceptionPage.class )
// Component of origin, Type,
Destination
.add( LoginPage.class, Exception.class, ExceptionPage.class
)
);
Or maybe just some exception handler with onException(), like
http://blog.wizche.ch/2011/12/wicket-15custom-exception-page.html - is
that the way? Not that convenient but usable.
Thanks,
Ondra