O'Reilly logo

JSF 1.2 Components by Ian Hlavats

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying success messages in JSF

The JSF framework includes built-in support for rendering validation error messages when form validation fails. These messages are typically rendered using the<h:message> or<h:messages> tags. When a JSF form is posted to the server, the JSF framework's request processing lifecycle includes the following phases:

  1. Restore the UI component tree for the view.
  2. Apply the incoming form data to the UI components in the tree.
  3. Attempt to convert and validate the data.
  4. If the conversion/validation is successful, update the application's model.
  5. Invoke the backing bean method associated with the component that submitted the form.
  6. Send the response back to the client.

When a conversion or validation error causes the conversion and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required