Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2619

Event Handler adds a new JSONObject to my JSONObject return

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.0.14
    • Fix Version/s: 5.0.15
    • Component/s: None
    • Labels:
      None

      Description

      When trying to create an AJAX handler to process a form submit, instead of returning my JSONObject simply as "

      {"somekey":"somevalue"}

      ", it returns "

      {"somekey":"somevalue"}

      {} ", which is clearly an invalid JSON object. The {} seems to be added at org.apache.tapestry5.internal.services.AjaxComponentEventRequestHandler:108.

      See attached file for an example project showing this behavior.

        Attachments

        1. example.rar
          19 kB
          Tobias Wehrum

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: