title: Primefaces conditional tooltip
body: <pre><code>&lt;p:spinner id="amount" 
             min="0" 
             max="#{bean.availableAmount}" 
             value="#{bean.amount}" /&gt;
  &lt;p:tooltip for="amount" 
             showEvent="focus" 
             hideEvent="blur" 
             disabled="#{bean.amount lt bean.maxAmount}" 
             value="Maximum amount has been reached" /&gt;
  </code></pre>
  
  <p>I'm looking for a way to implement something like the disabled property on above example. In other words, I'd like to implement a conditional tooltip that only shows IF the condition is met. Does anyone know a way to accomplish this?</p>