You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Dimitris Zenios (JIRA)" <ji...@apache.org> on 2010/12/10 14:32:04 UTC

[jira] Created: (TAP5-1368) Ajax custom exception handled does not work

Ajax custom exception handled does not work
-------------------------------------------

                 Key: TAP5-1368
                 URL: https://issues.apache.org/jira/browse/TAP5-1368
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.2.4
            Reporter: Dimitris Zenios


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.
-
You can reply to this email to add a comment to the issue online.


[jira] [Closed] (TAP5-1368) The onFailure function provided to Tapestry.ajaxRequest does not always get invoked

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-1368.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.2.6
                   5.3.1

> 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
>             Fix For: 5.3.1, 5.2.6
>
>
> 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

        

[jira] [Updated] (TAP5-1368) The onFailure function provided to Tapestry.ajaxRequest does not always get invoked

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] [Commented] (TAP5-1368) The onFailure function provided to Tapestry.ajaxRequest does not always get invoked

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052835#comment-13052835 ] 

Hudson commented on TAP5-1368:
------------------------------

Integrated in tapestry-trunk-freestyle #375 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/375/])
    TAP5-1368: The onFailure function provided to Tapestry.ajaxRequest does not always get invoked

hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1138116
Files : 
* /tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js


> 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
>             Fix For: 5.3.1, 5.2.6
>
>
> 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

        

[jira] [Commented] (TAP5-1368) The onFailure function provided to Tapestry.ajaxRequest does not always get invoked

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052835#comment-13052835 ] 

Hudson commented on TAP5-1368:
------------------------------

Integrated in tapestry-trunk-freestyle #375 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/375/])
    TAP5-1368: The onFailure function provided to Tapestry.ajaxRequest does not always get invoked

hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1138116
Files : 
* /tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js


> 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
>             Fix For: 5.3.1, 5.2.6
>
>
> 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

        

[jira] [Assigned] (TAP5-1368) Ajax custom exception handled does not work

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Assignee: Howard M. Lewis Ship

> Ajax custom exception handled does not work
> -------------------------------------------
>
>                 Key: TAP5-1368
>                 URL: https://issues.apache.org/jira/browse/TAP5-1368
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 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

        

[jira] [Assigned] (TAP5-1368) Ajax custom exception handled does not work

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Assignee: Howard M. Lewis Ship

> Ajax custom exception handled does not work
> -------------------------------------------
>
>                 Key: TAP5-1368
>                 URL: https://issues.apache.org/jira/browse/TAP5-1368
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 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

        

[jira] [Updated] (TAP5-1368) The onFailure function provided to Tapestry.ajaxRequest does not always get invoked

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] [Closed] (TAP5-1368) The onFailure function provided to Tapestry.ajaxRequest does not always get invoked

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-1368.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.2.6
                   5.3.1

> 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
>             Fix For: 5.3.1, 5.2.6
>
>
> 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