Hello,

I have a zone that is updated with an ajax request. Inside this zone, I use
an InPlaceEditor components (from t5components) many times (one for each row
in a table). The InplaceEditor component include a javascript library,
controls.js, with the IncludeJavascruptLibrary annotation.

On the first request, this works ok, because even when the InPlaceEditor is
used many times, control.js is included just once. But when I update this
zone element and many other InPlaceEditor's arrived, this request comes with
many requests for including control.js. The JSON response when I update the
zone is something like this:

{"scripts":["/assets/scriptaculous/5.0.14-SNAPSHOT/controls.js","/assets/scriptaculous/5.0.14-SNAPSHOT/controls.js","/assets/scriptaculous/5.0.14-SNAPSHOT/controls.js","/assets/scriptaculous/5.0.14-SNAPSHOT/controls.js"],....

I'm doing something wrong? Or T5 doesn't check that a library is included
more than once in ajax requests??

Regards.
-- 
View this message in context: 
http://www.nabble.com/T5---Javascript-libraries-on-ajax-requests-tp18395682p18395682.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to