This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Validation is a heck of a lot simpler with JSF than with Struts. However, Sun's RI doesn't provide any client side validation. So everything goes to the server. Other vendor implementation may provide validators for client side validation.
You can validate simply using the faces taglib like:
You can also call a method in your backing bean to do the validation:
For the standard validators that's all there is to it. You don't have to maintain any other files (like struts validator XML file(s)). [ December 15, 2004: Message edited by: Gregg Bolinger ]