Re: How to handle "Service Unavailable" errors in ajax requests

2018-06-15 Thread mscoon
The ajax failure handler did indeed do the trick. Thanks, Martin. On Mon, Jun 11, 2018 at 3:49 PM, Martin Grigorov wrote: > Hi, > > Have you tried with AjaxCallListener's failure handler ? > If jQuery.ajax() notifies its error listeners then it should work. > > The redirect will work only if

Re: How to handle "Service Unavailable" errors in ajax requests

2018-06-11 Thread Martin Grigorov
Hi, Have you tried with AjaxCallListener's failure handler ? If jQuery.ajax() notifies its error listeners then it should work. The redirect will work only if the error page is served by something that is still up, because "Service Unavailable" means that the web server (e.g. Tomcat) is down.

How to handle "Service Unavailable" errors in ajax requests

2018-06-11 Thread mscoon
Hi all, I have an AjaxSubmitLink which fails silently if the back-end server goes away. In debug mode, the ajax debug console shows: ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Service Unavailable This is in Wicket 6.x Is there a way to catch these kinds of errors and show