Re: Zone update after ajax request to component event

2012-09-28 Thread Lance Java
I'm not too familiar with the tapestry-jquery code but perhaps updateZoneOnEvent(eventName, element, zoneId, url) does exactly what you want? https://github.com/got5/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/jquery/tapestry-jquery.js -- View this message in context: ht

Re: Zone update after ajax request to component event

2012-09-28 Thread nquirynen
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]); })

Re: Zone update after ajax request to component event

2012-09-28 Thread Emmanuel DEMEY
Hi, If you use Tapestry5-jQuery, you should have a look to this javascript code : https://github.com/got5/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/jquery/assets/components/upload/upload-jquery.js Manu 2012/9/28 nquirynen > Hi, > > I have a component (grid) where I add

Re: Zone update after ajax request to component event

2012-09-28 Thread Ivan Khalopik
As you use your own zone update mechanism instead of native(e.g. EventLink component) you can provide js-callback for ajax request as you mention before. To update zone use something like this: var zone = Tapestry.findZoneManager(spec.zoneId); function rowClickCalback(response) { zone.process

Re: Zone update after ajax request to component event

2012-09-28 Thread Lance Java
Take a look at Geoff's ZoneUpdater mixin [1] which fires a serverside event by listening to a clientside event on a DOM element. You should never update the innerHTML of a zone directly, use the client-side ZoneManager. If you are using tapestry-jquery, there is a different implementation of this.

Re: Zone update after ajax request to component event

2012-09-28 Thread Charlouze
Hey, I've never used it but if you want to use jQuery, you should take a look at the tapestry5-jquery plugin : http://tapestry5-jquery.com/ Charles. 2012/9/28 nquirynen > Hi, > > I have a component (grid) where I added a javascript onclick event on my > rows where I do an ajax (jquery) request