O'Reilly logo

PrimeFaces Beginner's Guide by K. Siva Prasad Reddy

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

Extending the CSV framework with custom JSF validators

In addition to built-in converters and validators, JSF supports creating custom converters and validators. We can also extend the PrimeFaces CSV framework to support custom converters and validators, and perform conversions and validations on the client side, similar to the built-in converters and validators.

To create a custom JSF validator, we need to implement javax.faces.validator.Validator. To make this custom validator work with the PrimeFaces CSV framework, we also need to implement the org.primefaces.validate.ClientValidator interface to provide a client validator ID and validation metadata.

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