tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (TAP5-1368) The onFailure function provided to Tapestry.ajaxRequest does not always get invoked
Date Tue, 21 Jun 2011 18:17:47 GMT

     [ https://issues.apache.org/jira/browse/TAP5-1368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Howard M. Lewis Ship updated TAP5-1368:
---------------------------------------

    Affects Version/s: 5.3.1
              Summary: The onFailure function provided to Tapestry.ajaxRequest does not always
get invoked  (was: Ajax custom exception handled does not work)

> The onFailure function provided to Tapestry.ajaxRequest does not always get invoked
> -----------------------------------------------------------------------------------
>
>                 Key: TAP5-1368
>                 URL: https://issues.apache.org/jira/browse/TAP5-1368
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.1, 5.2.4
>            Reporter: Dimitris Zenios
>            Assignee: Howard M. Lewis Ship
>
> Even if i create my own exceptionhandler 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

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message