title: Why is ui:fragement not rendered inside ui:composition
body: <p>I'm a beginner with JSF and Java, please be nice!</p>
  
  <p>I'm trying to render a specific block if a user is an Administrator.</p>
  
  <p>I have a template. This template render correctly a specific block if the user is logged.</p>
  
  <p>admin.xhtml:</p>
  
  <pre><code>    &lt;ui:composition template="../../WEB-INF/tpl/admin/template.xhtml"&gt;
          &lt;ui:define name="sectionTitle"&gt;Admin&lt;/ui:define&gt;
  
          &lt;!-- Logged as Admin --&gt;
          &lt;ui:fragment rendered="#{user.admin}"&gt;
              &lt;ui:define name="body"&gt;
                  &lt;h3&gt;Welcome&lt;/h3&gt;
                  &lt;p&gt;Please choose an administration task!&lt;/p&gt;
              &lt;/ui:define&gt;
          &lt;/ui:fragment&gt;
  
      &lt;/ui:composition&gt;
  </code></pre>
  
  <p>template.xhtml:</p>
  
  <pre><code>&lt;div class="header"&gt;
      &lt;h2&gt;
          &lt;ui:insert name="sectionTitle"&gt; Default Section Title&lt;/ui:insert&gt;
      &lt;/h2&gt;
      &lt;ui:insert name="logBox"&gt;
          &lt;ui:fragment rendered="#{not user.logged}"&gt;
              &lt;ui:include src="login.xhtml"&gt;&lt;/ui:include&gt;
          &lt;/ui:fragment&gt;
  
          &lt;ui:fragment rendered="#{user.logged}"&gt;
              &lt;h:form&gt;
                  &lt;h:commandButton value="Logout"
                      action="#{userService.logout}" /&gt;
              &lt;/h:form&gt;
          &lt;/ui:fragment&gt;
      &lt;/ui:insert&gt;
  &lt;/div&gt;
  
      &lt;div class="corebody"&gt;
          &lt;ui:insert name="body"&gt; Default Section Content&lt;/ui:insert&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>I can move the rendered block inside the template like so:</p>
  
  <pre><code>&lt;ui:fragment rendered="#{user.admin}"&gt;
          &lt;ui:insert name="body"&gt; Default Section Content&lt;/ui:insert&gt;
  &lt;/ui:fragment&gt;
  </code></pre>
  
  <p>but this don't seem ok to me regarding the responsability of each files ( this don't seem really generic, why should such a thing be in the template? ).</p>
  
  <p>Am I missing something really obvious?</p>