title: Customising Richfaces skins in JBoss 7 through CSS overriding
body: <p>In my richfaces 4.2.0 application, all the pages use the same template:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"&gt;
  &lt;h:head&gt;
      &lt;title&gt;MY APPLICATION&lt;/title&gt;
      &lt;link href="/myapp/resources/css/stylesheet.css" rel="stylesheet" type="text/css"/&gt;
  &lt;/h:head&gt;
  
  &lt;h:body class="form" &gt;
      &lt;div id="page"&gt;
            .....
      &lt;/div&gt;
  &lt;/h:body&gt;
  </code></pre>
  
  <p>The file stylesheet.css is used to define some global styles as well as to override some richfaces classes. My application uses automatic skinning (<em>org.richfaces.enableControlSkinning = true</em>) as well: in brief, stylesheet.css has been designed to override everything produced by RF which was not looking as desired.</p>
  
  <p>Everything worked fine under JBoss 6 because the RF styles (ECSS) were imported before stylesheet.css and hence got overridden. Under JBoss 7 (EAP 6) happens exactly the contrary, so stylesheet.css has simply no effect.</p>
  
  <p>Do you know if (and how :)) I could influence this behavior?
  Thanks a lot</p>