O'Reilly logo

Oracle ADF Faces Cookbook by Amr Gawish

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

Creating a custom JSF validator

JSF provides an easy way to create custom validation logic to meet your business needs.

If this validation only occurs in a single page, then you may consider using validation inside the page-managed bean. However, if you want this validation to be used in different components or in different pages, consider creating a JSF validator.

In this recipe, we will create a custom validator for the employee's email attribute that needs to start with the first letter of his first name. You can continue from the previous recipe, or you can grab this project's recipe by cloning the CreateCustomJSFValidator application from the Git repository.

Getting ready

In order to create custom JSF validator, we need to perform the following ...

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