Re: Tapestry 5.1.0.5 repit the scripts
Thank you for your response, I', trying and all is ok. So include libraries in isn't recomendend Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-1-0-5-repit-the-scripts-tp3261634p3262547.html Sent from the Tapestry - User mailing list archive at Nabbl
Re: Tapestry 5.1.0.5 repit the scripts
As Howard said, Tapestry doesn't parse your .tml to avoid including JavaScript files twice. Instead of using in your template, use the @IncludeJavaScriptLibrary annotation and the repetition won't happen again.On Fri, 12 Nov 2010 16:16:38 -
Re: Tapestry 5.1.0.5 repit the scripts
Thank you for time and your responses Yes, I'm using the tapestry capabilities,the only diference is I'm using "${asset:context:js/jquery-1.4.2.min.js}" in the layout and @IncludeJavaScriptLibrary("context:js/jquery-1.4.2.min.js") in the mixin, this is my code: Layout.tml: -
Re: Tapestry 5.1.0.5 repit the scripts
Just make sure you use Tapestry's support for JavaScript libraries (@IncludeJavaScriptLibrary in 5.1, or @Import in 5.2). Tapestry DOES NOT parse the rendered HTML to look for libraries that you've directly included in your template. It relies on you being consistent about using its built in capa
Re: Tapestry 5.1.0.5 repit the scripts
About this question. Here we are using a layout that includes different components. When we include jQuery lib in the mixins the jQuery doesn't works. We have to include the jQuery lib in the layout to make the mixins work. This is because we are not including pages and we are using components
Re: Tapestry 5.1.0.5 repit the scripts
On Fri, 12 Nov 2010 07:04:51 -0200, iberck wrote: Pd. If I add the script 2 times my mixin breaks Are you including them though @IncludeJavascriptLibrary and using the same expression to refer to the same file? If not, you should. -- Thiago H. de Paula Figueiredo Independent Java, Apache
Re: Tapestry 5.1.0.5 repit the scripts
Pd. If I add the script 2 times my mixin breaks Thanks in advance for your responses -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-1-0-5-repit-the-scripts-tp3261634p3261657.html Sent from the Tapestry - User mailing list archive at Nabble.com. -