JSF2 - h:message

Bookmark and Share

Overview

The h:message tag is rendered as HTML <span> tag, to render a Faces message for the component identified by the for attribute.

How it works

Tools used:

  • Tomcat 7.0.27
  • JDK 1.6.0_25
  • Eclipse 3.7
  • Mojarra 2.1.13
  • Maven 3.0.3

JSF 2 View Pages

home.xhtml

CSS

styles.css

Run the JSF 2 Application

Access to http://localhost:8080/jsf2practice/home.jsf:

JSF 2 Image

Just click the Submit button, you should see the following page:

JSF 2 Image

Related Tutorials