title: Forwarding template parameters and defines
body: <p>Consider a nested template:</p>
  
  <p><strong>Base.xhtml:</strong></p>
  
  <pre><code>...
  
  &lt;h:outputText value="#{uiParamter}"/&gt;
  &lt;ui:insert name="header"/&gt;
  
  ... etc.
  </code></pre>
  
  <p><strong>Layout.xhtml:</strong></p>
  
  <pre><code>&lt;ui:composition template="Base.xhtml"&gt;
  
      ...
  
      &lt;ui:insert name="content"/&gt;
  
      ... etc.
  
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>When now defining a template client like this:</p>
  
  <pre><code>&lt;ui:composition template="Layout.xhtml"&gt;
  
      &lt;ui:define name="header"&gt; foo &lt;/ui:define&gt;
      &lt;ui:define name="content"&gt; foo2 &lt;/ui:define&gt;
      &lt;ui:param name="uiParameter" value="foo3"/&gt;
  
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>does one have to forward the <code>&lt;ui:param&gt;</code> or <code>&lt;ui:define&gt;</code> in the <code>Layout.xhtml</code> to the <code>Base.xhtml</code> template by redefining it. e.g: </p>
  
  <pre><code>&lt;ui:param name="uiParameter" value="#{uiParameter}"&gt;  
  &lt;ui:define name="header"&gt;
      &lt;ui:insert name="header"/&gt;
  &lt;/ui:define&gt;
  </code></pre>
  
  <p>One could also rephrase this question as: <em>"Do template parameters behave cascading?"</em></p>