Or simply with @IncludeJavaScriptLibrary annotation (http://tapestry.apache.org/tapestry5.1/guide/ajax.html). Because Javascript files are combined, this doesn't incur additional load time cost.
Kalle On Tue, Jan 12, 2010 at 8:55 AM, Thiago H. de Paula Figueiredo <thiag...@gmail.com> wrote: > On Tue, 12 Jan 2010 14:53:05 -0200, Moritz Gmelin <moritz.gme...@gmx.de> > wrote: > >> Hi, > > Hi! > >> <a onclick="alert ('hello world');" href="#">clickme</a> > > @Inject RenderSupport and use its addScript() methods instead of adding the > JavaScript inline inside your .tml. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and > instructor > Owner, software architect and developer, Ars Machina Tecnologia da > Informação Ltda. > http://www.arsmachina.com.br > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org