Name

Messages/Messages

Synopsis

This renderer represents a message component as text or a table.

Component family:

javax.faces.Messages

Renderer type:

javax.faces.Messages

Renders children:

No

Encode behavior

Renders all queued messages or only those queued without a component identifier if the component’s globalOnly property is set to true. The message properties identified by the showDetail and showSummary component properties 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 component ID 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.

Decode behavior

None.

Attributes

[errorClass="styleClass"] [errorStyle="style"]
[fatalClass="styleClass"] [fatalStyle="style"]
[infoClass="styleClass"] [infoStyle="style"]
[layout="list|table"]
[style="style"] [styleClass="styleClass"]
[title="title"] [tooltip="true|false"]
[warnClass="styleClass"] [warnStyle="style"]

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.