title: Primefaces/JSF - Disable button based on two conditions
body: <p>I would like to disable a button in primefaces in the case of any one of the conditions is met. 
  For example:</p>
  
  <p>I have the commandButton:</p>
  
  <pre><code>&lt;p:commandButton value="Check"  actionListener="#{myBean.someMethod()}" 
                   disabled="#{myBean.contador1 eq 0} "&gt;
  </code></pre>
  
  <p>It works ok. However, I want to check another condition to disable the button too.</p>
  
  <pre><code>disabled="#{myBean.contador2 eq 100} "&gt;
  </code></pre>
  
  <p>If I try one of them separately, the button is disabled. However, when I try to join both conditions, none of them works. I’ve tried:</p>
  
  <pre><code> disabled="#{myBean.contador1 eq 0} || #{myBean.contador2 eq 100} "&gt;
   disabled="#{myBean.contador1 eq 0} or #{myBean.contador2 eq 100} "&gt;
   disabled="#{myBean.contador1 eq 0} , #{myBean.contador2 eq 100} "&gt;
   disabled="#{myBean.contador1 eq 0} #{myBean.contador2 eq 100} "&gt;
  </code></pre>
  
  <p>Any suggestion? Thanks in advance.</p>