title: Accept only digits for h:inputText value
body: <p>Is there a way to confirm the value of an <code>h:inputText</code> in JSF, which should accepts only digits. Means it can be an <code>Integer</code> or the <code>float</code>. </p>
  
  <p>If I type  <code>12s3a562.675</code>  ,  <code>a5678s12</code>  ,  <code>68712haf.563345</code>  or any other such kind of values, then it should show an error. Otherwise it accepts and proceeds.</p>