title: c:choose not working in JSF
body: <p>I have three values and I want one component to be rendered in the case of first two values and another component for the third value</p>
  <p>Below, I have my page :</p>
  <h2>page.xhtml</h2>
  <pre><code>&lt;ui:repeat value=#{bean.value} var=&quot;data&quot;&gt;
  &lt;c:choose&gt;
   &lt;c:when  test=&quot;#{data.thirdValue == 'content'}&quot;&gt;
     &lt;h:outputText value=&quot;Wrong value&quot;/&gt;
   &lt;/c:when&gt;
   &lt;c:otherwise&gt;
    Correct!
   &lt;/c:otherwise&gt;
  &lt;/c:choose&gt;
  &lt;/ui:repeat&gt;
  </code></pre>
  <p>This is how my page is defined. I have also added the following namespace : <code>xmlns:c=&quot;http://java.sun.com/jsp/jstl/core</code>.</p>
  <p>I tested whether, the value defined inside test for <code>&lt;c:when&gt;</code> returns &quot;true&quot; or &quot;false&quot; and it does.</p>
  <p>My problem is that the <code>&lt;c:when&gt;</code> is never evaluated. The <code>&lt;c:otherwise&gt;</code> value is always rendered. Am I missing something? Is it because of the the conditional rendering being inside <code>&lt;ui:repeat&gt;</code> that the when is not evaluated?</p>
  <p>Any help will be most appreciated. Thanks in advance</p>