• Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring Web-Flow Richfaces Client Side Validations  RSS feed

 
sandeep lokhande
Ranch Hand
Posts: 120
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Richfaces with Spring Web-Flow and i am doing client side validation,
Its now works fine but my client want me to do such validation that,

I should not Enter numbers in TextField, not even accept the numbers at all.

What will be solution for this?
as it is now show error message upon Entering number,
but i do not want to allow him to enter Numbers absolutely.

Kindly suggest me the solution.
- Sandy
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Although it would be nice if someone provided a JSF tag that did that already, I don't know of any. So I think you're stuck with writing a Javascript snippet and connecting it to the control's "onkeydown" event.

If you have a lot of these, you might want to subclass the inputText control with one that generates the needed code automatically.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!