title: Is it possible to use template with composite component in JSF 2?
body: <pre><code>&lt;ui:composition xmlns="http://www.w3.org/1999/xhtml"
      ...
      template="inputLayout.xhtml"&gt;
  
      &lt;composite:interface&gt;
          &lt;composite:attribute name="name" /&gt;
          &lt;composite:attribute name="value" /&gt;
      &lt;/composite:interface&gt;
  
      &lt;composite:implementation&gt;
        &lt;!-- &lt;ui:define name="content"&gt; --&gt;
            &lt;h:message for="textPanel" style="color:red;" /&gt;
            #{cc.attrs.name} : 
            &lt;h:inputText id="name" value="#{cc.attrs.value}" /&gt;
        &lt;!-- &lt;ui:define&gt; --&gt;
      &lt;/composite:implementation&gt;
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>The problem is that even the <strong>ui:define</strong> is commented the content is rendered.
  So it is like the <strong>ui:define</strong> is ignored or Am I missing some thing ?
  Thanks.</p>