tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tapestry Wiki] Update of "JSON" by superoverdrive
Date Thu, 18 Dec 2008 09:21:51 GMT
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


Mime
View raw message