title: How to define default content for facet in a composite component?
body: <p>I am trying to write a composite component in JSF 2.2. </p>
  
  <p>This is it.</p>
  
  <pre><code>    &lt;html xmlns="http://www.w3.org/1999/xhtml"
            xmlns:cc="http://xmlns.jcp.org/jsf/composite"&gt;
  
          &lt;!-- INTERFACE --&gt;
          &lt;cc:interface&gt;
              &lt;cc:facet name="content"/&gt;
              &lt;cc:facet name="menubar"/&gt;
          &lt;/cc:interface&gt;
  
          &lt;!-- IMPLEMENTATION --&gt;
          &lt;cc:implementation&gt;
          Content header
  
          &lt;cc:renderFacet name="content"&gt;
              This is the default content.
          &lt;/cc:renderFacet&gt;
  
          Spacer
  
          &lt;cc:renderFacet name="menubar"&gt;
              This is the default menubar.
          &lt;/cc:renderFacet&gt;
  
      &lt;/cc:implementation&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is how it is used.</p>
  
  <pre><code>&lt;dd:dummy&gt;Hello hello&lt;/dd:dummy&gt;
  </code></pre>
  
  <p>This is what is rendered to the client.</p>
  
  <p><img src="https://i.stack.imgur.com/ksaWt.png" alt="output"></p>
  
  <p>Why is the default content and default menubar not rendered?</p>