You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Chris Lewis (JIRA)" <de...@tapestry.apache.org> on 2008/03/19 17:06:24 UTC

[jira] Commented: (TAPESTRY-2286) Support JSONArray as a valid return type from AJAX event handlers

    [ https://issues.apache.org/jira/browse/TAPESTRY-2286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580428#action_12580428 ] 

Chris Lewis commented on TAPESTRY-2286:
---------------------------------------

These attachments are against r638901.

> Support JSONArray as a valid return type from AJAX event handlers
> -----------------------------------------------------------------
>
>                 Key: TAPESTRY-2286
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2286
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0, 5.0.12
>            Reporter: Chris Lewis
>            Priority: Minor
>             Fix For: 5.0.12
>
>         Attachments: jsonarray-response.patch, JSONArrayEventResultProcessor.java
>
>
> I have an ajax handler that needs to return a list of json objects. It would be convenient if I could just return a JSONArray instance as I can a JSONObject, so I can easily return the list. According to the documentation (http://tapestry.apache.org/tapestry5/tapestry-core/guide/ajax.html) and the exception being thrown, this is not currently possible. For my case I have to wrap the response in a dummy object with a single member (the array of objects), to satisfy tapestry.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org