<h:messages> will print all global FacesMessage instances found in the
FacesContext. If you want to add a message from your Invoke Application
phase (an actionListener method, for example), just do this:
if ( passwords don't match ) {
MessageUtils.addMessage(FacesMessage.SEVERITY_ERROR,"message.key.passwords.nomatch",
null);
}
This message will be displayed by the <h:messages> tag.
--
View this message in context:
http://www.nabble.com/%3Ch%3Amessages%3E-to-display-bean-messages--t1468904.html#a3970818
Sent from the MyFaces - Users forum at Nabble.com.