• 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

Richfaces Validation - Textbox Should not accept NUMBERS

 
Ranch Hand
Posts: 120
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its me sandy from Mumbai<INDIA>,
I am using Spring Richfaces for my project,
I want to do Client Side Validation for Registration form,
as,



then, i want that first name Should not Contain Numbers,
So that i have used Regular Expression for that,




Its works fine.

Now i need that it should not accept the Number at All,
Not even accept the number values.

What should be done for preventing textbox accepting the number values?

suggest me the solution, Thank you in advance.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Now i need that it should not accept the Number at All,
Not even accept the number values.



Kindly elucidate it... you are already validating for NAN via reg-expression.

Thanks,
D
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
do you want a kind of filter?

I mean, avoid the user to insert numbers?

if so, you should implement it using javascript
 
sandeep lokhande
Ranch Hand
Posts: 120
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Leonardo Rafaeli wrote:do you want a kind of filter?

I mean, avoid the user to insert numbers?

if so, you should implement it using javascript



Yes sir,
I want a filter for input,
and it should not accept numbers.
i did this in JavaScripts before and it worked fine,
But as i am not using any JS here,
i am wondering if anything is present that will give me such filtering facility.

Otherwise JS is very much fine.

Thank you very much for your reply.
 
If I had asked people what they wanted, they would have said faster horses - Ford. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic