title: Problems with conditionals in JSF
body: <p>I have the code bellow:</p>
  
  <pre><code>&lt;c:set var="show" value="#{cartBean.itemsAdded}" /&gt;
  
  &lt;c:if test="${show}"&gt;
      &lt;h:form id="test1"&gt;
          &lt;h:commandLink action="#{cartBean.foo}"&gt;this doesn't work&lt;/h:commandLink&gt;           
      &lt;/h:form&gt;
  &lt;/c:if&gt;
  
  &lt;h:form id="test2"&gt;
      &lt;h:commandLink action="#{cartBean.foo}"&gt;this works!&lt;/h:commandLink&gt;         
  &lt;/h:form&gt;
  </code></pre>
  
  <p>When show=false, show only the second link.
  And it works. I can reach server (I'm using debug to see this).</p>
  
  <p>When show=true, both links appears. But ONLY second link works. The link inside conditional doesn't trigger the action in server.</p>
  
  <p>Someone, can, please, help me?</p>
  
  <p>Note: the same thing happens when I use <em>a4j:outputPanel rendered="#{show}"</em></p>