>
> However, in the current state, when you would include two jQuery based
> components from different libraries, you would actually be including
> prototype and two copies of jQuery.
>
> I think the first step would be to assure there is a common jQuery (and
> possibly also other libraries like yiu, dojo,...) which is promoted. This
> way at least that kind of duplication can easily be avoided.



The reason that happens is because jQuery isn't officially supported, so
each component would ship with jQuery..

The way I set things up currently, jQuery is supported like Prototype or
Blackbird are supported. So jQuery will be shipped with Tapestry. This will
make sure all component-creators use the same version.
They can have it included into the page by using the
@IncludeJavaScriptLibrary annotation and a predefined path
(tapestry.jquery). Tapestry automatically makes sure only 1 version is ever
included into the page, even if multiple component include it.

The double inclusion will only be a problem if you're using different 3rd
party Tapestry components that each also ship with the full plugin. Then the
same library is included twice simply beause they are on different paths.

regards,

Onno

Reply via email to