Em Wed, 04 Feb 2009 14:20:58 -0300, wesleywj2 <wesley...@yahoo.co.uk>
escreveu:
hi thiago,
Hi!
thanks for the quick reply, btw; after putting that annotation on the
page class;
Put it on your component class, so everytime you use your component
Tapestry will include the needed Javascript files.
By Tapestry default, the Javascript includes are made at the bottom of the
page. You can change this in you AppModule.contributeApplicationDefaults()
method setting the tapestry.script-at-top configuration to true (more
information at http://tapestry.apache.org/tapestry5/guide/conf.html).
By the way, that tree example does not follow the recomended way of using
Javascript in Tapestry. This page explains it very nicely:
http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained. Advice:
use RenderSupport to add Javascript snippets to your page, not <script>
blocks. ;)
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org