Name

<h:messages>

Synopsis

This action represents an instance of the component type registered with the type ID javax.faces.HtmlMessages (by default, an instance of the javax.faces.component.html.HtmlMessages class), combined with a renderer registered with the renderer type ID javax.faces.Messages.

The component receives all queued messages or only those queued without a component identifier if the globalOnly attribute is set to true. The message properties identified by the showDetail and showSummary attributes are rendered as cells in an HTML table if the layout attribute is set to table; otherwise within an HTML <span> element if any of the CSS style attributes apply or the id attribute is set. If the tooltip attribute is set to true and both the summary and the detailed text are rendered, the message summary is rendered as the value of the <td> or <span> element’s title attribute.

Syntax

<h:messages [id="id"] [binding="componentBinding"] [rendered="true|false"]
  [globalOnly="true|false"] [layout="list|table"]
  [showDetail="true|false"] [showSummary="true|false"] [tooltip="true|false"]
  [errorClass="styleClass"] [errorStyle="style"]
  [fatalClass="styleClass"] [fatalStyle="style"]
  [infoClass="styleClass"] [infoStyle="style"]
  [warnClass="styleClass"] [warnStyle="style"]
  <!-- HTML attributes -->
  [style="style"] [styleClass="styleClass"] [title="title"]
/>

Attributes

Attribute name

Java type

EL expression type

Description

binding
String

VB

Must be a value binding expression for a ...

Get JavaServer Faces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.