You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Dimitris Zenios <di...@gmail.com> on 2010/12/10 22:47:20 UTC

Ajax custom exception handler does not work in tapestry 5.2.4

Even if i create my own exception handler function and register it through the Tapestry.ajaxRequest(url,{ onException: function}) the exception handled is not called when an exception is thrown.I think the problem is in the succes function that  tapestry.js overwrites we have this snippet of code when the status is 0 or the request was not a success 		

if (!response.getStatus() || !response.request.success()) {
	Tapestry.error(Tapestry.Messages.ajaxRequestUnsuccessful);
	return;
}

it returns before calling the exception handler

ps. i already submitted  a jira (TAP5-1368)  https://issues.apache.org/jira/browse/TAP5-1368