Summary
Tag name: <h:message>
UIComponent class: javax.faces.component.html.HtmlMessage
Tag class: org.apache.myfaces.taglib.html.HtmlMessageTag
Component type: javax.faces.HtmlMessage
Component family: javax.faces.Message
Renderer type: javax.faces.Message
Renderer class: org.apache.myfaces.renderkit.html.HtmlMessageRenderer
Renders text displaying information about the first FacesMessage
that is assigned to the component referenced by the "for" attribute.
Attributes
Name | Type | Supports EL? | Description |
---|---|---|---|
binding | javax.faces.component.html.HtmlMessage | Only EL | Identifies a backing bean property (of type UIComponent or appropriate subclass) to bind " + "to this component instance. This value must be an EL expression. |
dir | String | Yes | HTML: The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left). |
errorClass | String | Yes | CSS class to be used for messages with severity "ERROR". |
errorStyle | String | Yes | CSS style to be used for messages with severity "ERROR". |
fatalClass | String | Yes | CSS class to be used for messages with severity "FATAL". |
fatalStyle | String | Yes | CSS style to be used for messages with severity "FATAL". |
for | String | Yes | The ID of the component whose attached FacesMessage object (if present)
should be diplayed by this component.
This is a required property on the component. |
id | String | Yes | Get a string which uniquely identifies this UIComponent within the scope of the nearest ancestor NamingContainer component. The id is not necessarily unique across all components in the current view. |
infoClass | String | Yes | CSS class to be used for messages with severity "INFO". |
infoStyle | String | Yes | CSS style to be used for messages with severity "INFO". |
lang | String | Yes | HTML: The base language of this document. |
rendered | boolean | Yes | A boolean value that indicates whether this component should be rendered. Default value: true. |
role | String | Yes | HTML: An advisory title for this element. Often used by the user agent as a tooltip. |
showDetail | boolean | Yes | Specifies whether the detailed information from the message should be shown. Default to true. |
showSummary | boolean | Yes | Specifies whether the summary information from the message should be shown. Defaults to false. |
style | String | Yes | HTML: CSS styling instructions. |
styleClass | String | Yes | The CSS class for this element. Corresponds to the HTML 'class' attribute. |
title | String | Yes | HTML: An advisory title for this element. Often used by the user agent as a tooltip. |
tooltip | boolean | Yes | If true, the message summary will be rendered as a tooltip (i.e. HTML title attribute). |
warnClass | String | Yes | CSS class to be used for messages with severity "WARN". |
warnStyle | String | Yes | CSS style to be used for messages with severity "WARN". |