You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Daniel Castro <df...@gmail.com> on 2006/09/28 05:47:00 UTC

Doubt about assets

Guys,

I am trying to insert some javascripts, the overlib javascript, as an asset
of my page
<asset name="overlib" path="context:/js/overlib.js"/>
But when I test the overlib function and open the sourecode of the generated
page the corresponding <script></script> that should have been writen is not
written.

How should I include my javascripts inside a page?

-- 
--------
We shall go on to the end.
We shall fight in France
We shall fightover the seas and oceans.
We shall fight with growing confidence and growing strength in the air.
We shall defend our island whatever the cost may be
We shall fight on beaches, we shall fight on the landing grounds,
We shall fight in the fields and in the streets,
We shall fight on the hills.
We shall never surrender.
Winston Churchill

Re: Doubt about assets

Posted by Jesse Kuhnert <jk...@gmail.com>.
If all you are doing is serving js from your web context folder named
"/js/overlib.js" then I would do it like this:

<script type="text/javascript" src="/js/overlib.js"></script>

On 9/27/06, Daniel Castro <df...@gmail.com> wrote:
>
> Guys,
>
> I am trying to insert some javascripts, the overlib javascript, as an
> asset
> of my page
> <asset name="overlib" path="context:/js/overlib.js"/>
> But when I test the overlib function and open the sourecode of the
> generated
> page the corresponding <script></script> that should have been writen is
> not
> written.
>
> How should I include my javascripts inside a page?
>
> --
> --------
> We shall go on to the end.
> We shall fight in France
> We shall fightover the seas and oceans.
> We shall fight with growing confidence and growing strength in the air.
> We shall defend our island whatever the cost may be
> We shall fight on beaches, we shall fight on the landing grounds,
> We shall fight in the fields and in the streets,
> We shall fight on the hills.
> We shall never surrender.
> Winston Churchill
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com