The Conversion and Validation Process
Recall the JSF Life Cycle.
- The user fills in a field of a web form.
- User clicks submit button, sending form data as a string to the server.
This is the request value.
- Request values are stored in UIComponent objects as submitted
values.
- Submitted values are converted to Java types required by the
application and stored in the component objects as local values.
- Local values are validated for correctness (for example, integer
range or string length).
- After validation, local values are stored in the appropriate beans.
Example: