You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2008/12/18 10:21:51 UTC
[Tapestry Wiki] Update of "JSON" by superoverdrive
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by superoverdrive:
http://wiki.apache.org/tapestry/JSON
New page:
{{{!#JAVA
@OnEvent(component = "getNodes")
public StreamResponse getNodes() {
Request request = requestGlobals.getRequest();
JSONArray record = new JSONArray();
JSONObject jsObject = new JSONObject();
jsObject.put("text", "adapter");
jsObject.put("id", "/adapter");
jsObject.put("cls", "folder");
record.put(jsObject);
return new JSONStreamResponse(jsObject);
}
}}}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org