-
1. Re: Incorrect order of CSS resource inclusions
lfryc Jul 12, 2011 8:52 AM (in response to vace117)Hi Val,
this is already reported in RF-10973,
you could vote for this issue and watch for the progress.
-
2. Re: Incorrect order of CSS resource inclusions
vace117 Jul 12, 2011 6:15 PM (in response to lfryc)Thanks, Lukas.
I'm wondering though how you know that this is the same issue. The jira says nothing about inconsistent ordering of CSS resources...
If it is indeed the same issue, then there is another workaround, which is a bit less intrusive than using !important.
You can re-target the CSS resources to the body. Since all RF CSS resources go into the head, this ensures that they will precede the user specified ones.
-
3. Re: Incorrect order of CSS resource inclusions
nbelaevski Jul 12, 2011 10:23 PM (in response to vace117)1 of 1 people found this helpfulVal,
Have you tried placing user resources at the bottom of the page, not at the top?
-
4. Re: Incorrect order of CSS resource inclusions
vace117 Jul 13, 2011 7:21 PM (in response to nbelaevski)ok, I see what you mean. Then my <h:outputStylesheet/> tags would get processed by Facelets after the RF components, so everything would be added to head resources in the right order.
That's a good workaround.
I know that this is more of a JSF problem than RIchFaces, but do you know if there is a planned fix for this?
Thanks, Nick.
-
5. Re: Incorrect order of CSS resource inclusions
hdu Jan 14, 2013 2:38 PM (in response to nbelaevski)Hi, sorry for revisting an old thread. I tried putting <h:outputStylesheet/> at the bottom inside <h:body/> but it is still outputing the richfaces resource stylesheets after my stylesheet:
<h:body>
...
<h:outputStylesheet target="head" library="stylesheet" name="theme.css"/>
</h:body>