wood burning stoves 2.0*
The moose likes JSF and the fly likes validatores in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "validatores in JSF" Watch "validatores in JSF" New topic

validatores in JSF

zohreh talebi
Ranch Hand

Joined: Sep 01, 2006
Posts: 41

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?

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952

Well, actually, you might consider using the JSF validators!

Customer surveys are for companies who didn't pay proper attention to begin with.
Tak Ng

Joined: Jun 05, 2007
Posts: 19
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.
Don't get me started about those stupid light bulbs.
subject: validatores in JSF
Similar Threads
JavaServer Faces in Action: Reader question
JSF vs Struts
Passing parameters/ attributes to a custom validator
To Authors - Exception Handling in JSF
struts or JSF