File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validatores in JSF

 
zohreh talebi
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

as you know Struts comes with validators for email address, credit card numbers,regular expressions, and more but JSF only comes with validators for missing values, length of input, and numbers in a given range. how can we use these advantage of Struts in JSF?

Regards
Zohreh
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17626
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, actually, you might consider using the JSF validators!

 
Tak Ng
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The MyFaces Implementation of JSF includes validators for credit card, regular expressions, emails, etc.

Take a look at http://myfaces.apache.org/tomahawk/

On the left hand side of the page there are links that take you to example usages of these validators.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic