It's not your code. I think I've found the bug (never be sure unless you
wrote the initial code ;-)) But hopefully it can be fixed with the
solution proposed in JIRA TAPESTRY-445
>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:
>
> <at> Asset("context:/folder/file.js")
>
>On 7/5/05, Norbert Sándor <developer <at> erinors.com> wrote:
>> Hi,
>
>> I have a component with
>>
>> <at> 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?
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]