I think you might have a situation where component A is rendering
first, and including library Y, then component B renders and includes
library X then Y.

Because the Y is seen first, its order is first, even though component
B wants Y to depend on X.

I'd check what else on your page is including one library and make
sure all locations that inlcude Y first include X.

One way to do this would be to create an application-wide Layout
component and inject the libraries there.

On Jan 15, 2008 2:07 PM, Michael Lake <[EMAIL PROTECTED]> wrote:
>
> I've got a page with two Js Libraries included using the @Inject
> @Path("..."), etc.
>
> The one .js library immediately depends on variables defined the the
> other .js library(meaning that it's not waiting until page ready/DOM is
> loaded)
>
> but the order in which tapestry is outputting the <script> elements is
> reversed, resulting in Js errors on page load.
>
> editing the js files is not an option..
>
> I've tried some tricks, including using the "@IncludeJavaScriptLibrary"
> annotation and I still can't get them to load in the proper order.
>
>
> Thanks,
> Mike Lake
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to