Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Richfaces Validation - Textbox Should not accept NUMBERS

 
sandeep lokhande
Ranch Hand
Posts: 120
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • 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.

 
Ronin Demarco
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
Leonardo Rafaeli
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Crusading Chameleon likes the size of this ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!