Name

Output/Format

Synopsis

This renderer represents an output component as a formatted message, with parameter component children providing the parameter values.

Component family:

javax.faces.Output

Renderer type:

javax.faces.Format

Renders children:

No

Encode behavior

Renders the component as text, within an HTML <span> element if any of the CSS style attributes apply or the component ID is set. The component’s value should be a parameterized message string. An Object[] is created from the component’s UIParameter children and passed along with the component’s value as arguments to the java.text.MessageFormat format() method to format a message, which is then rendered, with all special characters converted to their character entity equivalents if escape is set to true.

Decode behavior

None.

Attributes

[escape="true|false"]
[style="style"] [styleClass="styleClass"] [title="title"]

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.