title: Facelets: ui:param default value
body: <p>How can one define a default value for a facelet template parameter?
  Consider the following element using a template parameter:</p>
  
  <pre><code>&lt;h:outputText value="#{templParam}"&gt;&lt;/h:outputText&gt;
  </code></pre>
  
  <p>The above line will print the the template parameter <code>templParam</code>  which is passed by a <code>ui:param</code> tag in a <code>ui:composition</code> using the template:</p>
  
  <pre><code>&lt;ui:param name="templParam" value="Hello world"&gt;&lt;/ui:param&gt;
  </code></pre>
  
  <p>But if <code>ui:param</code> tag is missing nothing will be printed. Although, how can one print e.g "Default value" in this case?</p>