title: How to include a xhtml page into a Template in jsf
body: <p>I am trying to include a xhtml page into a Template content.Such that the content of template may contain the output of that xhtml file.
  I don't how to include this,so please give me some suggestions.</p>
  
  <p>`index.xhtml
          
               </p>
  
  <pre><code>    &lt;ui:composition template="newTemplate.xhtml"&gt;
           &lt;ui:define name="content"   &gt;&lt;/ui:define&gt;&lt;/ui:composition&gt;
  
  &lt;/h:body&gt;`
  </code></pre>
  
  <p>newTemplate.xhtml</p>
  
  <pre><code>    &lt;div id="top"&gt;
          &lt;ui:insert name="top"&gt;Top&lt;/ui:insert&gt;
      &lt;/div&gt;
  
      &lt;div id="content" class="center_content"&gt;
          &lt;ui:insert name="content"&gt;Content&lt;/ui:insert&gt;
      &lt;/div&gt;
  
      &lt;div id="bottom"&gt;
          &lt;ui:insert name="bottom"&gt;Bottom&lt;/ui:insert&gt;
      &lt;/div&gt;
  
  &lt;/h:body&gt;
  `
  </code></pre>