Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1368

The onFailure function provided to Tapestry.ajaxRequest does not always get invoked

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3, 5.2.4
    • Fix Version/s: 5.3, 5.2.6
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      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

        Activity

        Hide
        hudson Hudson added a comment -

        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
        Show
        hudson Hudson added a comment - 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

          People

          • Assignee:
            hlship Howard M. Lewis Ship
            Reporter:
            zenios Dimitris Zenios
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development