Hello Martin,
         I am handling couple of other exceptions in my application. Below
is my code,

getRequestCycleListeners().add(new AbstractRequestCycleListener() {
            @Override
            public IRequestHandler onException(final RequestCycle
requestCycle, final Exception e) {
                LOGGER.error(e.getMessage(), e);
                Throwable cause = e;
                if (cause instanceof RedirectToUrlException) {
                    return new RedirectRequestHandler(Constants.MENU_URL);
                } else if (cause instanceof
ListenerInvocationNotAllowedException) {
                    //catching this because auto-refresh is having some
issue when the timer is stopped
                    //need to find some way to remove this
                    return new RenderPageRequestHandler(new
PageProvider(ProblemIndexPage.class));
                }
                String uniqId = UUID.randomUUID().toString();
                LOGGER.error("ERROR UUID : " + uniqId);

                //redirect to the default error page
                return new RenderPageRequestHandler(new
PageProvider(DefaultErrorPage.class));
            }

Will the above code block wicket to recreate the page when
StalePageException occurs? If yes, how can I handle specific runtime
exceptions.

Thanks,
Suresh



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Getting-more-stale-page-exception-in-wicket-1-5-6-tp4649492p4649524.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to