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

Tapestry.ajaxRequest() fails when just parameters are provided, but not an onSuccess handler function

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.2
    • Fix Version/s: 5.2.3
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      So... Tapestry.ajaxRequest(url, { parameters:

      { "foo" : "bar" }

      }) should work, and just ignore the value from the server. Instead, it fails on the client with an exception about "successHandler is not defined."

        Activity

        Hide
        hlship Howard M. Lewis Ship added a comment -

        Workaround:

        Tapestry.ajaxRequest(url, { parameters:

        { "foo" : "bar" }

        , onSuccess: function() { } });

        Show
        hlship Howard M. Lewis Ship added a comment - Workaround: Tapestry.ajaxRequest(url, { parameters: { "foo" : "bar" } , onSuccess: function() { } });
        Hide
        hudson Hudson added a comment -

        Integrated in tapestry-5.2-freestyle #225 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/225/)

        Show
        hudson Hudson added a comment - Integrated in tapestry-5.2-freestyle #225 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/225/ )

          People

          • Assignee:
            hlship Howard M. Lewis Ship
            Reporter:
            hlship Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development