Looks like a bug, but an odd one.

BTW,  the thing with annotation is that if the annotation attribute is
named value, and is a string, then you can abbreviate it:

@Asset("context:/folder/file.js")

On 7/5/05, Norbert Sándor <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I have a component with
> 
>     @Asset(value = "context:/folder/file.js")
>     public abstract IAsset getJsAsset();
> 
> and in renderComponent() I invoke
> 
>     PageRenderSupport pageRenderSupport = 
> TapestryUtils.getPageRenderSupport(cycle, this);
>     pageRenderSupport.addExternalScript(getJsAsset().getResourceLocation());
> 
> getJsAsset() returns the correct asset, but the rendered content is wrong, 
> the context is not included and the path is duplicated in the URL:
> 
>     <script language="JavaScript" type="text/javascript" 
> src="/folder/file.js/folder/file.js"></script>
> 
> What's wrong with my code?
> 
> Thanks,
> Norbi
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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

Reply via email to