On Wed, 19 Feb 2014 14:54:07 -0300, Dmitry Gusev <dmitry.gu...@gmail.com> wrote:

Another option could be to store some attribute in the request scope and
only call javaScriptSupport.addScript once on the server side.

JavaScriptSupport.addSCript() is deprecated in T5.4. In addition, I've just noticed, he's doing a wrong thing anyway: the call to decorateBody() should be inside a .js file @Import'ed by the component. Tapestry only includes each imported .js file once, so decorateBody() will be called exactly once. Problem solved by doing the right thing. :)

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to