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.
In order to add the client-side capabilities to the validator, we need to do two things:
org.apache.myfaces.trinidad.validator.ClientValidatorinterface and override its methods.
The second step is important since even though we are creating a client-side ...