title: Conditional variable definition in JSF
body: <p>i want to change the variable value based on a condition
  so i tried the following:</p>
  
  <pre><code>&lt;h:head&gt;
  
      &lt;ui:param name="userCase" value="Insert" /&gt;
  
      &lt;ui:fragment rendered="#{employee.employeesBulkInsert==false}"&gt;
         &lt;ui:param name="userCase" value="Update" /&gt;
      &lt;/ui:fragment&gt;
  
         &lt;title&gt;#{userCase} Employee &lt;/title&gt;
  
  &lt;/h:head&gt;
  </code></pre>
  
  <p>but it doesn't work in the update case, it shows an empty string, any ideas why ?</p>
  
  <p>i know that there are other solutions like defining the variable in the backing bean, or make the conditional ui fragment on the title tag directly, but i want to know why the above is not working, please advise, thanks.</p>