title: Facelets multi-level templates - ui:define not rendered
body: <p>I have 2 basic templates - one with a side menu, and one without - that both ui:include a common page which contains ui:insert tags (templates are largish, so basic example below). </p>
  
  <p>Using Mojarra everything worked ok, but now I have migrated to MyFaces the ui:insert tags are ignored and the content of the related ui:define does not get rendered (i.e. 'Here are my results' is not displayed). </p>
  
  <p>Should I be specifying included-page.xhtml as a template somehow? I tried</p>
  
  <pre><code>&lt;ui:composition template="included-page.xhtml" /&gt;
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>&lt;ui:include src="included-page.xhtml" /&gt;
  </code></pre>
  
  <p>but lost the CSS.</p>
  
  <p>Hoping someone can suggest a solution :)</p>
  
  <p>Many thanks,</p>
  
  <p>Neil</p>
  
  <p>my-page.xhtml</p>
  
  <pre><code>&lt;ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
      template="/templates/default-template.xhtml"&gt;
  
      &lt;ui:param name="title" value="My Title" /&gt;
  
      &lt;ui:define name="results"&gt;
  
          Here are my results
  
      &lt;/ui:define&gt;
  
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>default-template.xhtml</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:ui="http://java.sun.com/jsf/facelets"&gt;
  
  &lt;h:head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;/meta&gt;
      &lt;title&gt;#{title}&lt;/title&gt;
  &lt;/h:head&gt;
  
  &lt;h:body&gt;
  
      &lt;ui:include src="included-page.xhtml" /&gt;
  
  &lt;/h:body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>included-page.xhtml</p>
  
  <pre><code>&lt;ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"&gt;
  
      &lt;ui:insert name="results"&gt;
  
      &lt;/ui:insert&gt;
  
  &lt;/ui:composition&gt;
  </code></pre>