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

Event Handler adds a new JSONObject to my JSONObject return

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 5.0.14
    • 5.0.15
    • None
    • 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

            hlship Howard Lewis Ship
            tobiasw Tobias Wehrum
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: