How To Create A Custom JSF Validator
How To Create A Custom JSF Validator
Page 1 of 3
2. Add the needed validation logic. This logic should use
javax.faces.validator.ValidatorException to throw the appropriate exceptions and
Page 2 of 3
3. Register the validator in the faces-config.xml file.
Open the faces-config.xml file and select the Overview tab in the editor window.
The faces-config.xml file is located in the <View_Project>/WEB-INF directory.
In the window, select Validators and click New.
Page 3 of 3