O'Reilly logo

JSF 2.0 Cookbook by Anghel Leonard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Bean validation with f:validateBean

Probably the most important validation tag provided by JSF 2.0 is the f:validateBean tag. For a start, you have to know that this tag is part of a mechanism whose aim is to integrate Bean Validation with JSF 2.0. Bean Validation—known as JSR 303 (http://jcp.org/en/jsr/detail?id=303); officially part of the new Java EE 6 this defines a metadata model and API for JavaBean validation. The default "metadata source is annotations, with the ability to override and extend the meta-data through the use of XML validation descriptors". In this recipe, you will see how to exploit the Bean Validation.

Getting ready

We developed this recipe with NetBeans 6.8, JSF 2.0, and GlassFish v3. The JSF 2.0 classes were obtained from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required