Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validatores in JSF

 
zohreh talebi
Ranch Hand
Posts: 41
  • 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: 18098
50
Android Eclipse IDE Linux
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic