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 Bean Validation annotations

The Bean Validation API also supports creating custom validation annotations and we can extend the PrimeFaces CSV framework to support custom Bean Validation annotations as well.

We can create a custom Bean Validation annotation and specify constraint validator using the @Constraint annotation. In order to make it work with the PrimeFaces CSV framework, we also need to specify the client-side constraint resolver using the @ClientConstraint annotation.

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