Differences between revisions 1 and 2
Revision 1 as of 2008-12-18 09:21:43
Size: 439
Comment:
Revision 2 as of 2009-09-20 23:20:55
Size: 439
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

{{{!#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);
    }

}}}

JSON (last edited 2009-09-20 23:20:55 by localhost)