Re: [5.4] update zone with javascript

2013-12-12 Thread Eugen
Hi Matthias, as second parameter of deferredZoneUpdate() function You need to provide a event link to a function that returns a block or a Zone.Body, something like: @OnEvent("update-zone-event") Object myEvent() { return request.isXHR()?zone.getBody():null; } the event Link, t

Re: [5.4] update zone with javascript

2013-12-12 Thread Matthias
Thanks to both of you, I tried Howard's approach but I think I missing something fundamental. Heres my new code: JavaScript require([ "jquery", "t5/core/zone" ], function($, zoneManager) { // #1 with zone.update var myZone = $("#myZone"); // why do I have to set the data-update-zone

Standalone IOC and service overrides

2013-12-12 Thread Adriaan Joubert
Hi, we love the IOC and are using it in our standalone Java applications as well as our web applications. I do however have a problem with overriding services. When using the suggestions from the cookbook ( http://tapestry.apache.org/ioc-cookbook-overriding-ioc-services.html) to override a service

Re: [5.4] update zone with javascript

2013-12-12 Thread Howard Lewis Ship
The short form is: trigger an events.zone.update event on the zone's client-side element to update it immediately, using available content (a string, or DOM elements). Or, trigger events.zone.refresh event when you know a URL and additional parameters; Tapestry will run the Ajax request and updat