title: Inject additional stylesheets (or scripts) in Facelets template client
body: <p>I have the following master template file for my JSF based pages :</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:p="http://primefaces.org/ui"&gt;
  &lt;h:head&gt;
     &lt;title&gt;&lt;ui:insert name="title"&gt;MyApp&lt;/ui:insert&gt;&lt;/title&gt;
     &lt;h:outputStylesheet name="stylesheet.css" library="styles"/&gt;
  &lt;/h:head&gt;
  
  &lt;h:body&gt;
  
     &lt;div id="container"&gt;
        &lt;div id="header"&gt;
           &lt;ui:insert name="header"&gt;
              // header content
           &lt;/ui:insert&gt;
        &lt;/div&gt;
  
        &lt;div id="content"&gt;
           &lt;ui:insert name="content"&gt;
           &lt;/ui:insert&gt;
        &lt;/div&gt;
  
        &lt;div id="footer"&gt;
           &lt;ui:insert name="footer"&gt;
           &lt;/ui:insert&gt;
        &lt;/div&gt;
     &lt;/div&gt;
  &lt;/h:body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>In the head section, we have <code>stylesheet.css</code>. This stylesheet contains all my global styles which are common to all pages.</p>
  
  <p>In the template client, I would like to add page specific stylesheet. So, I tried adding the following line in my template client page:</p>
  
  <pre><code>&lt;ui:composition template="/pages/templates/template.xhtml"&gt;
     &lt;ui:define name="content"&gt;
        &lt;h:outputStylesheet name="indexPage.css" library="styles" target="head"/&gt;
  
        // body content
  
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>This, however, does not seem to add <code>indexPage.css</code> in the generated HTML's head section.</p>
  
  <p>I am using Mojarra 2.1.2. Does it support the <code>target</code> attribute? I don't see it listed as one of the available in my autosuggest options in Eclipse.</p>
  
  <p>In case it doesn't, how do I inject the <em>additional</em> page specific CSS while still using templates?</p>