Thanks! These both work, sort of. The renderSupport puts the script
tag in the body tag (5.0.5). So, its not a huge improvement. While the
more manual solution of adding the element works well enough, neither
of these solutions easily allow arbitrary blocks to be inserted. I
think this would be the holy grail of this situation.

1. Define a Block of code (declaratively in your template)
2. Insert Block into head

With the Element and RenderSupport solutions I imagine the the
plumbing exists to do this. I'll have to dig deeper into the how's to
figure it out.

Thanks again.

On 7/17/07, David Avenante <[EMAIL PROTECTED]> wrote:
I think something like that work :

@Environmental
    private PageRenderSupport renderSupport;

    @Inject
    @Path("myScript.js")
    private Asset myScript;


 renderSupport.addScriptLink(myScript);

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



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

Reply via email to