JSF Bean Validation (JSR 303) Quick Tutorial
There are two type of validation available to Java EE applications. As stated in the [1], most of the tedious error checking and error handling is done outside of the model tier. Validators are usually instance of the javax.faces.validator.Validator . Validation normally happen early during the Process Validations phase of the request processing life-cycle. The following validation are possible View/Page validation Model validation Page level validation is the requirement of the user interface. Cross field validation is the most important. For example, without filling address line one, you cannot start to fill the address line 2. Sometimes, you need to accept the declaration or term and conditions before the submit. The new feature of new days web submit is verification code to avoid denial of attacks. Page level validations are change page to page. Model validation is important to execute business functionality on consistent model. Model is composed by number of Java beans (POJ...