title: ui:insert not being replaced by ui:define
body: <p>I'm creating a JSF template to follow a layout on my application... so I created this layout.xhtml page.</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 xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"&gt;
  
  &lt;h:head&gt;
      &lt;link href="stylesheet.css" rel="stylesheet" type="text/css" /&gt;
  &lt;/h:head&gt;
  &lt;h:body&gt;
      &lt;f:loadBundle basename="mensagens.mensagens_pt_BR" var="msgs" /&gt;
      &lt;ui:composition&gt;
          &lt;div id="page"&gt;
              &lt;div id="header-container"&gt;
                  &lt;div id="nomeSistema"&gt;#{msgs.outNomeSistema}&lt;/div&gt;
              &lt;/div&gt;
              &lt;div id="menu-login-container"&gt;
                  &lt;div id="menu"
                      style="width: 850px; height: 30px; border: solid 1px; padding: 15px;"&gt;
                      &lt;ui:include src="/menu/menu.xhtml" /&gt;
                  &lt;/div&gt;
                  &lt;div id="login"&gt;
                      &lt;ui:include src="/login/login.xhtml" /&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div id="content-container"&gt;
                  &lt;div id="content"&gt;
                      &lt;ui:insert name="content"&gt;
                          &lt;h2&gt;Default content&lt;/h2&gt;
                      &lt;/ui:insert&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div id="footer-container"&gt;
                  &lt;div id="footer"&gt;
                      &lt;h:outputText value="#{msg.versao}" /&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/ui:composition&gt;
  &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And here is the comum.xhtml</p>
  
  <pre><code>&lt;ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" template="layout.xhtml"&gt;
      &lt;ui:define name="content"&gt;
          &lt;h2&gt;Testando template...&lt;/h2&gt;
      &lt;/ui:define&gt;
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>but, when I access the comum.xhtml page on my browser. The text <strong>Default content</strong> is show, not <strong>Testando template...</strong>.</p>
  
  <p>What I'm doing wrong?</p>