First, you will need to open the URL for the event handler:
public String getModeChangedUrl()
{
return resources.createEventLink("ModeChanged").toAbsoluteURI();
}
Then in the javascript block in your tml, assign the url to the variable:
var modeChangedUrl = "${modeChangedUrl}";
Then you need to get a handle to the ZoneManager javascript object:
var zm = Tapestry.findZoneManagerForZone(zoneId);
, ZoneManager, ajax. MultiZoneUpdate , .
MultiZoneUpdate, . , . , .
, URL-, "/", .. "http://www.host.com/app/page/event/param1/param2"
, url ZoneManager, -:
zm.updateFromURL(url);
henning, PeriodicalExecuter , , :
new PeriodicalExecuter(function(pe)
{
var zm = Tapestry.findZoneManagerForZone("anyZoneId");
zm.updateFromUrl(url);
}, 5);