title: JSF: Is it possible to insert some css class into template from inherited jsf page
body: <p>Can I add some css class into template from inherited jsf page.</p>
  
  
  
  <p>template.jsf:</p>
  
  <pre class="lang-xhtml prettyprint-override"><code>    &lt;h:head &gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
          &lt;h:outputStylesheet library="css" name="template.css"  /&gt;
          &lt;h:outputScript library="javax.faces" name="jsf.js"/&gt;
          &lt;h:outputScript library="js" name="jsf_2.2_ajax_fix.js"/&gt;
  
          &lt;title&gt;
            &lt;h:outputText value="TEMPLATE:  "/&gt; 
            &lt;ui:insert name="subtitle"/&gt;
          &lt;/title&gt;
          &lt;ui:insert name="header"/&gt;
        &lt;/h:head&gt;
  
        &lt;h:body  style="margin: 0px !important; padding: 0; background-color: white; height: 100%;"  &gt;
  
          &lt;ui:insert name="status" /&gt;
  
   &lt;h:form id="mainForm" &gt;
          &lt;ui:insert name="content"&gt;&lt;/ui:insert&gt;
        &lt;/h:form&gt;
  
        &lt;/h:body&gt;
  </code></pre>
  
  <p>inheritedPage.jsf:</p>
  
  <pre class="lang-xhtml prettyprint-override"><code>&lt;h:head&gt;
      &lt;h:outputStylesheet library="css" name="templateAlterEgo.css"  /&gt;
    &lt;/h:head&gt;
    &lt;h:body class="pageBody"&gt;
        &lt;ui:define name="subtitle"&gt;
          &lt;h:outputText value="STATE OF SYSTEM"/&gt;
        &lt;/ui:define&gt;
        &lt;ui:define name="content"&gt;
  
       &lt;!-- some content--&gt;
  
        &lt;/ui:define&gt;
  &lt;/h:body&gt;
  </code></pre>
  
  <p>How I can put templateAlterEgo.css into template.jsf from inheritedPage.jsf.</p>