• Post Reply Bookmark Topic Watch Topic
  • New Topic

<p:inputMask> problem with no. of digit limitation

 
Pramod Singh Ara
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


<p:inputMask mask="?999999999" placeHolder ="" >


but my requirement is inputMask should take no limit no. of digits(only).but it is taking no. of 9 which i have given in mask attribute..
And if i am not giving mask attribute and i am handling with keyFilter(....regx) but it is allowed to paste alphabetic(Char) also. so mask attribute is required.
So any body can help me.....
thanks
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm. It would help if you could get that translated into English, because I'm not really sure I know what you are asking.

For an actual binary numeric input, you cannot have an open-ended number of digits, since the binary objects have a finite range that cannot be exceeded anyway. See the Java specs for the exact numbers.

If you use the abstract numeric classes, you should be able to have theoretically infinite digits, but a numeric edit mask regex would be required. Something like "[:digit:]+".
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!