Re: Updating a zone before the Ajax request

2010-01-15 Thread Thiago H. de Paula Figueiredo
On Fri, 15 Jan 2010 15:58:02 -0200, Baptiste Autin - Linkeo RD wrote: Not as much as something like, say: :-) You're right. You can file a JIRA to request this improvement. :) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and i

Re: Updating a zone before the Ajax request

2010-01-15 Thread Baptiste Autin - Linkeo RD
I think Ajax.Responders.register({ onCreate: function() { ... } )}; is easy enough. :) Not as much as something like, say: :-) (a special attribute on a t:zone, or on a t:beaneditform, I don't know what would be the best...) Your solution also means adding a renderSupport in the Java file...

Re: Updating a zone before the Ajax request

2010-01-15 Thread Thiago H. de Paula Figueiredo
On Fri, 15 Jan 2010 14:50:07 -0200, Baptiste Autin - Linkeo RD wrote: Thanks a lot guys. It works! :) (... even if I think the solution is rather complicated for a simple need... It would be great if a future release of Tapestry offered a way to call some Javascript just before an Ajax

Re: Updating a zone before the Ajax request

2010-01-15 Thread Baptiste Autin - Linkeo RD
Thanks a lot guys. It works! (... even if I think the solution is rather complicated for a simple need... It would be great if a future release of Tapestry offered a way to call some Javascript just before an Ajax request!) Joost Schouten (ml) a écrit : An easier solution would be to like Th

Re: Updating a zone before the Ajax request

2010-01-15 Thread Thiago H. de Paula Figueiredo
On Fri, 15 Jan 2010 12:46:55 -0200, Baptiste Autin - Linkeo RD wrote: Now, I would like to display a kind of loading icon (or invoke a Javascript method) just *before* the Ajax request, but I could find any solution. I've never tested it, but maybe Prototype's Ajax.Responders object is a

Re: Updating a zone before the Ajax request

2010-01-15 Thread Joost Schouten (ml)
An easier solution would be to like Thiago sugested. Here's my code that does the trick. Cheers, Joost .js file: AjaxProgressTracker = { init: function() { Ajax.Responders.register({ onCreate: function() { // ajax request is sent AjaxProgressTr

Updating a zone before the Ajax request

2010-01-15 Thread Baptiste Autin - Linkeo RD
Hello, I have a BeanEditForm that updates a Zone through the "zone" attribute. It works fine. Now, I would like to display a kind of loading icon (or invoke a Javascript method) just *before* the Ajax request, but I could find any solution. I could not make ProgressiveDisplay work in such a si