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

Adding client-side capabilities to the validator

Adding client-side capabilities to the validator can save a round trip to the server, which can greatly improve performance.

In this recipe, we will add client-side capabilities to the EmailValidator. You can continue from the previous recipe, or you can grab this project's recipe by cloning the CreatingCustomCSValidator application from the Git repository.

Getting ready

In order to add the client-side capabilities to the validator, we need to do two things:

  1. Create a JavaScript version of the validator following the documentations.
  2. Implement the org.apache.myfaces.trinidad.validator.ClientValidator interface and override its methods.

The second step is important since even though we are creating a client-side ...

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