Take a look at AjaxResponseRenderer
(http://tapestry.apache.org/5.3.6/apidocs/org/apache/tapestry5/services/ajax/AjaxResponseRenderer.html)

It can be used to add as many zone, json etc. responses in one request to
the client.

Example:
http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/multiplezoneupdate

A comment from Howard:
(http://tapestry.1045711.n5.nabble.com/Howto-render-a-block-and-put-it-into-a-JSON-reply-tp5486823p5717889.html)
"In an Ajax request, returning a JSONObject is completely appropriate return 
value from a component event that expects a page navigation result.  This 
will mix-and-match well with AjaxResponseRenderer (under 5.3 and 5.4); that 
is, you can return a JSONObject and Tapestry will add to it the keys for 
zone updates and page initializations related to rendering Blocks and Zones. 

Under 5.4, it's a bit neater, with the partial page render response values 
buried down a level under a "_tapestry" key. "





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-3-6-combining-JSON-response-and-zone-update-tp5720149p5720174.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to