title: JSF greater than zero validator
body: <p>How do you create a validator in JSF that validates the input text if it is greater than zero?</p>
  
  <pre><code>&lt;h:inputText id="percentage" value="#{lab.percentage}"&gt;
      &lt;f:validateDoubleRange minimum="0.000000001"/&gt;
  &lt;/h:inputText&gt;
  </code></pre>
  
  <p>I have the code above but I am not sure if this is optimal.  Although it works but if another number lesser than this is needed then I need to change the jsf file again.
  The use case is that anything that is greater than zero is okay but not negative number.</p>
  
  <p>Any thoughts?</p>