From jira-events at lists.jboss.org Tue Sep 4 21:54:33 2012 Content-Type: multipart/mixed; boundary="===============3368107470008642461==" MIME-Version: 1.0 From: Brian Leathem (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-12443) and styleClass attribute being overwritten when using by Skinning Date: Tue, 04 Sep 2012 21:54:33 -0400 Message-ID: <742322374.13708.1346810073476.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 108122557.4218.1346340932716.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============3368107470008642461== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-12443?page=3Dcom.atlassian.jira.pl= ugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12715925#com= ment-12715925 ] = Brian Leathem commented on RF-12443: ------------------------------------ The problem here is the ordering of the CSS files. Your __ tag is presumably in __, and so is rendered first. Subsequent= inclusion of a component on the page then renders it's required CSS resour= ces, *after* your CSS link. As such you are not overriding the values. The fix/workaround here is to include your custom __ CS= S reference at the end of the page, *after* you've referenced all other com= ponents. This way your style sheet will be included last, and CSS values w= ill cascade as you expect. While this may _feel_ like an unacceptible solu= tion, keep in mind that your CSS resource links will still be rendered into= the html __, you are merely influencing the order in which they are = included by the JSF component renderers. Any change to this would require a jira to be filed with the JSF SPEC (http= ://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC) = > and styleClass attribute being overwrit= ten when using by Skinning > -------------------------------------------------------------------------= ------------------------------------------------ > > Key: RF-12443 > URL: https://issues.jboss.org/browse/RF-12443 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: skinning > Affects Versions: 4.2.2.Final > Reporter: John Yeary > > The styleClass attributes are being overwritten by the skinning from the = application. This is in direct contradiction to Section 6.3 of the Develope= r Guide which states: > Custom style classes > Individual components can use the styleClass attribute to redefine sp= ecific elements. These components then use the styles defined in a CSS file= instead of the standard look for components as defined by the ECSS stylesh= eets. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira --===============3368107470008642461==--