title: How to use Boolean variable in c:if
body: <p>I am using this code in JSF.:</p>
  
  <pre><code>&lt;c:if test="#{sV.done.booleanValue()}"&gt;
       &lt;option value="#{sV.id}" selected="selected"&gt;#{sV.text}&lt;/option&gt;
  &lt;/c:if&gt;
  &lt;c:if test="#{not sV.done.booleanValue()}"&gt;
       &lt;option value="#{sV.id}"&gt;#{sV.text}&lt;/option&gt;
  &lt;/c:if&gt;
  </code></pre>
  
  <p><code>sv</code> is my class containing data (pojo), done is an <code>Boolean</code> variable, I want to display <code>option</code> tag with <code>selected</code> attribute if <code>sV.done</code> is <code>true</code>.
  But I couldn't make it. Don't know where I am wrong.</p>
  
  <p>Otherwise there can be something wrong with <code>c</code>, because <code>c:forEach</code> was not working before some time in my case in same page? It can be the reason? Where I am wrong?</p>
  
  <p>Every time it displays option tag without selected <code>attribute</code>.</p>