[ 
https://issues.apache.org/jira/browse/TAP5-1106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12858664#action_12858664
 ] 

Leonard Lu commented on TAP5-1106:
----------------------------------

onException takes an Ajax.Request instance as its first parameter, not 
Ajax.Response, therefore line 327 of tapestry.js:
Tapestry.debug(Tapestry.Messages.ajaxFailure + exception, response);

will result in the cryptic message  "Ajax failure: Status for : [object Object]"

> Tapestry.ajaxFailureHandler has an incorrect signature for an Ajax.Request 
> onException callback
> -----------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1106
>                 URL: https://issues.apache.org/jira/browse/TAP5-1106
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.2.0, 5.1.0.5
>            Reporter: Leonard Lu
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>             Fix For: 5.2.0
>
>
> From the Prototype Ajax documentation ( http://api.prototypejs.org/ajax/ ):
>  "onException: Triggered whenever an XHR error arises. Has a custom 
> signature: the first argument is the requester (i.e. an Ajax.Request 
> instance), and the second is the exception object."
> All other callbacks "are invoked with two parameters: the Ajax.Response  
> object and the result of evaluating the X-JSON response header, if any (can 
> be null)."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to