Just use @Import in your page's class:

@Import(library = "context:js/something.js", stylesheet =
"context:css/something.css")

mrg

PS. You should probably use that in your layout's class, too.


On Fri, May 6, 2011 at 1:17 PM, stephanos2k
<stephan.beh...@googlemail.com> wrote:
> I have a layout L and page P. The layout has a few scripts & stylesheets
> which are needed everywhere. But P requires a few specific files.
>
> How can I add a stylesheet and a script to the final <head> ?
>
> -> I tried just defining a <head> in P, assuming it would be merged; didn't
> work.
> -> I can't use annotations, since the assets are different for production
> mode.
>
> Can I somehow use a <block> in layout and overwrite it in the page?
>
> PS: Using Tapestry 5.2.5
>
>
> Cheers,
> Stephan
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/contribute-to-head-from-a-page-tp4376587p4376587.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to