title: JSF <include> doesn't work in template
body: <p>I'm a newbie in Java and JSF and trying to create a test page using JSF template, <code>&lt;ui:include&gt;</code> and <code>&lt;ui:insert&gt;</code>. As a result I get only <code>&lt;ui:insert&gt;</code> blocks on the page, but <code>&lt;ui:include&gt;</code> is not rendered. Could someone advise what's wrong here? Here's my template <code>main_template.xhtml</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html lang="en"
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
        xmlns:h="http://xmlns.jcp.org/jsf/html"&gt;
      &lt;h:head&gt;
          &lt;title&gt;Title Here&lt;/title&gt;
      &lt;/h:head&gt;
      &lt;h:body&gt;
          &lt;div id="header"&gt;
              &lt;ui:include src="header.xhtml"/&gt;
          &lt;/div&gt;
          &lt;div&gt;
              &lt;div id="menu"&gt;
                  &lt;ui:insert name="menu"&gt;Menu string&lt;/ui:insert&gt;
              &lt;/div&gt;
              &lt;div id="content" &gt;
                  &lt;ui:insert name="content"&gt;Main Content&lt;/ui:insert&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here's <code>index.xhtml</code>:</p>
  
  <pre><code>&lt;ui:composition template="WEB-INF/templates/main_template.xhtml"
       xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
       xmlns:h="http://xmlns.jcp.org/jsf/html"&gt;
  
      &lt;ui:define name="menu"&gt;
          &lt;h1&gt;Menu will be here&lt;/h1&gt;
      &lt;/ui:define&gt;
  
      &lt;ui:define name="content"&gt;
          &lt;h1&gt;New content here&lt;/h1&gt;
          &lt;p&gt;Blah blah&lt;/p&gt;
      &lt;/ui:define&gt;
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>..and <code>header.xhtml</code>:</p>
  
  <pre><code>&lt;ui:composition 
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
        xmlns:h="http://xmlns.jcp.org/jsf/html"&gt;
      &lt;h2&gt;Header page&lt;/h2&gt;
      &lt;p&gt;Include page blah blah lorem ipsum&lt;/p&gt;
  &lt;/ui:composition&gt;
  </code></pre>