aspose file tools
The moose likes JSF and the fly likes validatores in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "validatores in JSF" Watch "validatores in JSF" New topic
Author

validatores in JSF

zohreh talebi
Ranch Hand

Joined: Sep 01, 2006
Posts: 41
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

Joined: Jun 25, 2001
Posts: 12513

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



One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
Tak Ng
Greenhorn

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.
 
IntelliJ Java IDE
 
subject: validatores in JSF
 
Threads others viewed
Passing parameters/ attributes to a custom validator
JSF vs Struts
struts or JSF
JavaServer Faces in Action: Reader question
To Authors - Exception Handling in JSF
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture