title: Unable to accept input numbers after I use p inputMask, add a comma for numbers more than 999
body: <p>For the input text field below, 
  User can enter the values between one and 99,999.
  Enter only numbers.</p>
  
  <pre><code>&lt;p:message for="usage" display="text"&gt;&lt;p:autoUpdate/&gt;&lt;/p:message&gt;
  &lt;p:inputText id="usage" maxlength="10" required="true"
      requiredMessage="You must provide an input" value="#{powerMB.usage}"&gt;  
      &lt;f:validateDoubleRange minimum="1" maximum="99999" for="usage" /&gt;   
      &lt;p:keyFilter regEx="/[0-9]/i"  /&gt;         
  &lt;/p:inputText&gt;
  </code></pre>
  
  <p>Current Input values accept - examples</p>
  
  <pre><code>1 
  34                      
  99
  3534
  53535
  </code></pre>
  
  <p>I have tried to <strong>mask a specific input values</strong> as per </p>
  
  <p><a href="https://stackoverflow.com/questions/27437146/how-to-restrict-primefaces-inputmask-to-numbers-only?rq=1">How to restrict Primefaces inputMask to numbers only?</a>  </p>
  
  <p><a href="https://www.primefaces.org/showcase/ui/input/inputMask.xhtml" rel="nofollow noreferrer">https://www.primefaces.org/showcase/ui/input/inputMask.xhtml</a>                    </p>
  
  <p>Tried to <strong>add a comma for numbers</strong> more than 999</p>
  
  <p>I receive the following error for the code below</p>
  
  <pre><code>usage: Validation Error: Value is not of the correct type
  </code></pre>
  
  <hr>
  
  <pre><code>&lt;p:message for="usage" display="text"&gt;&lt;p:autoUpdate/&gt;&lt;/p:message&gt;
  &lt;p:inputMask id="usage" maxlength="5" required="true"
      requiredMessage="You must provide an input" mask="99,999" value="#{powerMB.usage}"&gt;  
      &lt;f:validateDoubleRange minimum="1" maximum="99999" for="usage" /&gt;   
  &lt;/p:inputMask&gt;
  </code></pre>
  
  <p>Input Given as </p>
  
  <pre><code>1       fail validation error
  34      fail                
  99      fail
  3534    fail
  53535   fail
  
  
  00,001      fail validation error
  00,034      fail                
  00,099      fail
  03,534  fail
  053,535 fail
  
  </code></pre>
  
  <p>unable to accept input values after I use inputMask</p>
  
  <p>Can provide a full working code of the existing functionality if needed.</p>