title: <c:choose><c:when> in JSF page does not work, seems to always evaluate false
body: <p>In my JSF page I use <code>&lt;c:choose&gt;&lt;c:when&gt;</code> tag to conditionally display content. However, it does not work as it seems to always evaluate <code>false</code>.</p>
  
  <p>E.g.</p>
  
  <pre><code>&lt;h:outputText value="#{pollInfo.active} -" /&gt;
  &lt;c:choose&gt;
      &lt;c:when test="#{pollInfo.active}"&gt;
          &lt;h:outputText value="Active" /&gt;
      &lt;/c:when&gt;
      &lt;c:otherwise&gt;
          &lt;h:outputText value="Deactive" /&gt;
      &lt;/c:otherwise&gt;
  &lt;/c:choose&gt;
  </code></pre>
  
  <p>There are for sure a few items with <code>active=true</code>, which is confirmed by <code>&lt;h:outputText&gt;</code>, but it just prints <code>Deactive</code> for all items. You can see the actual output in the following picture:    </p>
  
  <p><img src="https://i.stack.imgur.com/pHeh4.png" alt="enter image description here"></p>
  
  <p>How is this caused and how can I solve it?</p>