title: How to set a define inside other define
body: <p>I'm developing a web application in jboss, seam, richfaces.</p>
  
  <p>I'm using a template(xhtml) as master page of all others and there i set two insert tags. <code>&lt;ui:insert name="head"/&gt;</code>
  <code>&lt;ui:insert name="body"/&gt;</code></p>
  
  <p>The problem is that in pages that use this master page as template, the <code>&lt;ui:define name="head"&gt;...&lt;/ui:define&gt;</code> must be defined inside the <code>&lt;ui:define name="body"&gt;...&lt;/ui:define&gt;</code>.</p>
  
  <blockquote>
    <p>How can i do this?</p>
  </blockquote>
  
  <p>Basically, what i want is to do the following:</p>
  
  <blockquote>
    <p><code>&lt;ui:define name="body"&gt;... &lt;ui:define name="head"&gt; &lt;meta name="title" content="#{something.title}" /&gt; &lt;/ui:define&gt; ...&lt;/ui:define&gt;</code></p>
  </blockquote>
  
  <p>the master page must return :  <code>&lt;meta name="title" content="#{something.title}" /&gt;</code> on the <code>&lt;ui:insert name="head"/&gt;</code></p>
  
  <p>Thanks in advance</p>