Chapter 10. Client-side Validation

In this chapter, we will cover the following topics:

  • Configuring and getting started with CSV
  • Instant validation with p:clientValidator
  • Bean Validation and transformation
  • Extending CSV with JSF
  • Extending CSV with Bean Validation

Introduction

Validation exists to ensure that the application is robust against all forms of input data. Invalid data can cause unexpected execution errors, break assumptions elsewhere in your application, introduce errors, and even let someone hijack your data to attack your software. Every software should have server-side validation.

In addition, validation on the client side enables quick feedback for the users without a round trip to the server. That means client-side validation is faster ...

Get PrimeFaces Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.