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 capabilities (via the annotations, or direct calls into
RenderSupport (5.1) or JavaScriptSupport (5.2)).

There are significant other benefits to using the Tapestry mechanisms as
well.

On Fri, Nov 12, 2010 at 6:11 AM, Kado <juan.a...@condortech.com.ar> wrote:

> 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?
>
> Regards.
>
>
>
>
> On 11/12/2010 09:45 AM, Thiago H. de Paula Figueiredo wrote:
>
>> On Fri, 12 Nov 2010 07:04:51 -0200, iberck <ibe...@gmail.com> 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.
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to learn
how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

Reply via email to