Yep I use tapestry5-jquery :)

Ok so I added the following code to my javascript click events callback:

        if (responseJSON.zones) {

// perform multi zone update

$.each(responseJSON.zones, function(zoneId) {

$('#' + zoneId).tapestryZone("applyContentUpdate",
responseJSON.zones[zoneId]);
});
$.tapestry.utils.loadScriptsInReply(responseJSON);

}

if (responseJSON.updateZone) {

var spec = {
url : responseJSON.updateZone.url,
params : responseJSON.updateZone.params
};

$('#' + responseJSON.updateZone.zoneId).tapestryZone(
"update", spec);

}

Now my zones get updated and my added scripts get loaded. Is this what I'm
supposed to do?

Thanks all!



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Zone-update-after-ajax-request-to-component-event-tp5716538p5716543.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