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