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 <nat...@pensionarchitects.be> > Hi, > > I have a component (grid) where I added a javascript onclick event on my > rows where I do an ajax (jquery) request to a component event: > > $.get('${onRowClickEventLink}'); > > This all works fine, but I also want to update some zones after this event > so I added this to the event method: > > void onRowClick() { > ... > ajaxResponseRenderer.addRender(aZone); > } > > In Firebug I do see in the response the following: > > "zones" : { > "aZone" : ... > } > > But the zone does not get updated. > Now I found a workaround where I added a javascript callback function on > the > $.get request where I do the following: > > function rowClickCalback(r) { > aZone.html(r.zones.aZone); > } > > This does work and makes the zone update, but it does not feel like I am > doing things the right way. I'm pretty new to Tapestry with Ajax, so any > insight in what I am doing wrong is appreciated. > > Thanks, > Nathan > > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Zone-update-after-ajax-request-to-component-event-tp5716538.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 > > -- Emmanuel DEMEY Ingénieur Etude et Développement ATOS Worldline +33 (0)6 47 47 42 02 demey.emman...@gmail.com http://emmanueldemey.fr/ Twitter : @EmmanuelDemey