21. Introduction to Bean Validation
Validating input received from the user to maintain data integrity is an important part of application logic. Validation of data can take place at different layers in even the simplest of applications, as shown in Section 8.3, “Developing a Simple Facelets Application: The guessnumber-jsf Example Application.” The guessnumber-jsf
example application validates the user input (in the h:inputText
tag) for numerical data at the presentation layer and for a valid range of numbers at the business layer.
The Java API for JavaBean Validation (“Bean Validation”) provides a facility for validating objects, object members, methods, and constructors. In Java EE environments, Bean Validation integrates with Java EE containers ...
Get The Java EE 7 Tutorial: Volume 1, Fifth 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.