You can also add javascript code into the document head via PageRenderSupport
(see Form.java for a concrete example).
redijedi wrote:
>
> I'm trying to create a component that will allow me to define blocks
> of HTML to insert into the head. I think this would be useful for ad
> hoc JS, style declarations, etc. I know that this can be inserted
> using other mechanisms like:
>
> Element head = writer.getDocument().find("html/head");
>
> and inserting your element manually, but this isn't pretty or
> easy/possible for the script or style tag contents.
>
> I know that an alternative is just to slap it in the page where the
> component is rendered, but that's just sloppy.
>
--
View this message in context:
http://www.nabble.com/T5-component-content-tf4424504.html#a12904176
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]