From the course: Java EE 8: JavaServer Faces JSF 2.3

Improved validation

From the course: Java EE 8: JavaServer Faces JSF 2.3

Start my 1-month free trial

Improved validation

- [Instructor] JSF 2.2 supported Bean Validation with the annotations and custom messages for failed validation of input data. This is in addition to the standard JSF valid data component. Now we'll look at this JSF page with these fields. I have the first name, last name, email, password and the password confirmation input textboxes, kind of like your standard registration page. I need to validate that the password entered into password one matches what's in password box two, that's what known as class level validation or sometimes cross field validation. Validating one JSF input component relative to another or a set of input components as part of a whole bean is what's known as class level validation. This is the major convenience that JSF 2.3 brings to the table. JSF 2.3 introduces the F validate whole bean tag two amongst other things, support the class level validation functionality. I can't wait to show it to you later in the course.

Contents