use of org.apache.tapestry5.corelib.components.Zone in project tapestry-5 by apache.
the class MultiZoneUpdateDemo method onActionFromUpdate.
Object onActionFromUpdate() {
wilmaMessage = "His Wife, Wilma.";
// Do one the new way
ajaxResponseRenderer.addRender("fred", fredBlock);
ajaxResponseRenderer.addCallback(new JavaScriptCallback() {
public void run(JavaScriptSupport javascriptSupport) {
javascriptSupport.require("app/multi-zone-update").with("message", "Updated");
}
});
return new MultiZoneUpdate("barney", barneyBlock).add("dino", "His dog, Dino.").add(wilmaZone);
}
Aggregations