Thanks for your help Lance, I'm sure it could work that way.

I am a bit suprised that there is no direct solution to this. It's
common to have some libraries or default CSS and override them on
specific pages / layouts.
Making CSS special cases or writing an own MarkupRendererFilter for an
issue that could be solved by placing the CSS links in the correct
order seems like a big overkill to me.

I rather go back to writing the CSS include myself than jumping through hoops.




2012/3/19 Lance Java <lance.j...@googlemail.com>:
> In your AppModule, you can contribute a MarkupRendererFilter to fire after
> JavaScriptSupport
>
>    public void
> contributeMarkupRenderer(OrderedConfiguration<MarkupRendererFilter>
> configuration) {
>        configuration.addInstance("MyMarkupRendererFilter",
> MyMarkupRendererFilter.class, "after:JavaScriptSupport");
>    }
>
> MyMarkupRendererFilter can use then manipulate the MarkupWriter's DOM
> before it is written to the response output stream
>
> http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/MarkupWriter.html
>
> On Monday, 19 March 2012, Beat Durrer <bdur...@gmail.com> wrote:
>> Hi all,
>>
>> I have a "RootLayout" component which loads a CSS file, and some
>> SubLayout components add an other CSS.
>> I'm using T5.3.2 and simply applied the @Import(stylesheet={...}) to
>> the Layout classes.
>>
>> At the moment, the CSS from RootLayout is loaded after the SubLayouts
>> and therefore overrides theCSS styles.
>> Can I somehow control in which order those stylesheets are loaded? How?
>>
>>
>> Thanks in advance :-)
>> Beat
>>
>> ---------------------------------------------------------------------
>> 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