December 2017
Intermediate to advanced
372 pages
8h 46m
English
Having a <h:messages> tag on every JSF page is a good idea; without it, the user might not see validation messages and will have no idea why the form submission is not going through. By default, JSF validation messages do not generate any output in the application server log. A common mistake new JSF developers make is failing to add a <h:messages> tag to their pages; without it, if validation fails, then the navigation seems to fail for no reason (the same page is rendered if navigation fails and, without a <h:messages> tag, no error messages are displayed in the browser).
To avoid this situation, JSF 2.0 introduced the concept of project stages.
The following project stages are defined in JSF 2.0 and newer versions: