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 Bug
    • Status: Closed
    • Priority: Major 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
        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 added a comment - Integrated in tapestry-5.2-freestyle #225 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/225/ )
        Hide
        Howard M. Lewis Ship added a comment -

        Workaround:

        Tapestry.ajaxRequest(url, { parameters:

        { "foo" : "bar" }

        , onSuccess: function() { } });

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development