[ 
https://issues.apache.org/jira/browse/TAPESTRY-2356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12591404#action_12591404
 ] 

Julian Wood commented on TAPESTRY-2356:
---------------------------------------

Another fix would be to add the page stylesheets in AfterRender instead of 
SetupRender. I haven't checked the source to make sure that is the phase in 
which they are added - I just know that if you try this in Layout.java:

    @Inject
    @Path("context:css/global.css")
    private Asset globalStylesheet;

    @Environmental
    private PageRenderSupport support;

    @SetupRender
    void setupRender() {
        support.addStylesheetLink(globalStylesheet, null);
    }

The stylesheet is rendered after any page-specific stylesheets.



> Controlling included stylesheets order
> --------------------------------------
>
>                 Key: TAPESTRY-2356
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2356
>             Project: Tapestry
>          Issue Type: New Feature
>          Components: Framework
>    Affects Versions: 5.0.11
>            Reporter: Hugo Palma
>            Priority: Minor
>
> Currently there's no way to control in which phase a stylesheet is added when 
> using the IncludeStylesheet annotation.
> This would make style overriding much easier. For instance, one would want 
> for the declared css in it's layout component to override the css declared in 
> the page that in turn should override the css declare in a component.
> This was discussed in the following thread:
> http://thread.gmane.org/gmane.comp.java.tapestry.user/60643

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to