I tried using the "@Import stack=" in order to include the jquery libraries to no avail. I get this: Render queue error in SetupRender[Index:childminderlayout.layout]: No JavaScriptStack with name 'context:/js/jquery-1.6.2.js'. Any one has any clue? Regards, Julien.
2012/1/30 Julien Martin <bal...@gmail.com> > @Thiago: ok will do. > > 2012/1/30 Thiago H. de Paula Figueiredo <thiag...@gmail.com> > > On Mon, 30 Jan 2012 08:14:40 -0200, Julien Martin <bal...@gmail.com> >> wrote: >> >> I have actually. The issue is how to replace a variable within the js >>> file with the appropriate value. >>> >> >> You don't. Make it a parameter of a function you'll call through >> JavaScriptSupport.addScript(). >> >> To include a JS file, use @Import. addScript() is used to add lines of >> JavaScript at the bottom of your page, typically to do initialization >> stuff. JumpStart has one nice example: http://jumpstart.** >> doublenegative.com.au/**jumpstart/examples/javascript/**reusable<http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/reusable> >> . >> >> >> -- >> Thiago H. de Paula Figueiredo >> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, >> and instructor >> Owner, Ars Machina Tecnologia da Informação Ltda. >> http://www.arsmachina.com.br >> > >