O'Reilly logo

JSF 1.2 Components by Ian Hlavats

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

Validating user input with the Seam framework

In many ways, the JSF validation framework follows the example of previous MVC frameworks, such as Struts. The Struts framework introduced an XML-based validation layer that enabled developers to declare validation rules in an XML file, which the framework would then apply to form bean properties during form submission. Struts includes a number of built-in validators to support common scenarios, such as checking for required fields, verifying a numeric value, and validating a credit card number format.

The JSF validation framework also includes a number of built-in validators that can be registered on components in the view, such as the<f:validateLongRange> and<f:validateLength> tags. It is important ...

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