• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:]+".
 
reply
    Bookmark Topic Watch Topic
  • New Topic