The renderer for this component is responsible for obtaining the
messages from the FacesContext and displaying them to the
user.
This component supports the Messages renderer-type.
By default, the rendererType property must be set to
"javax.faces.Messages". This value can be changed by
calling the setRendererType() method.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | COMPONENT_FAMILY
The standard component family for this component. |
| public static final String | COMPONENT_TYPE
The standard component type for this component. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getFamily()
Implements abstract javax. Return the identifier of the component family to which this component belongs. |
| public String | Returns: the for client identifier.Return the client identifier of the component for which this component represents associated message(s) (if any). |
| public boolean | Returns: true if only global messages are to be shown, false otherwise.Return the flag indicating whether only global messages (that is, messages with no associated client identifier) should be rendered. |
| public boolean | Returns: true if this UIMessage instance should
redisplay javax.faces.application.FacesMessages that have already been handled,
otherwise returns false. By default this method will
always return true if setRedisplay(boolean) has
not been called.
|
| public boolean | Returns: true if detail is to be shown, false otherwise.Return the flag indicating whether the |
| public boolean | Returns: true if the summary is to be shown, false otherwise.Return the flag indicating whether the |
| public void | |
| public void | setGlobalOnly(boolean
The new flag value globalOnly)Set the flag indicating whether only global messages (that is, messages with no associated client identifier) should be rendered. |
| public void | setRedisplay(boolean
flag indicating whether previously handled messages
are redisplayed or not redisplay)Set the flag indicating whether the |
| public void | setShowDetail(boolean
The new flag showDetail)Set the flag indicating whether the |
| public void | setShowSummary(boolean
The new flag value showSummary)Set the flag indicating whether the |
| COMPONENT_FAMILY | back to summary |
|---|---|
| public static final String COMPONENT_FAMILY The standard component family for this component. | |
| COMPONENT_TYPE | back to summary |
|---|---|
| public static final String COMPONENT_TYPE The standard component type for this component. | |
| UIMessages | back to summary |
|---|---|
| public UIMessages() Create a new | |
| getFamily | back to summary |
|---|---|
| public String getFamily() Implements abstract javax. Doc from javax.
Return the identifier of the component family to which this component belongs. This
identifier, in conjunction with the value of the | |
| getFor | back to summary |
|---|---|
| public String getFor() Return the client identifier of the component for which this component represents associated message(s) (if any).
| |
| isGlobalOnly | back to summary |
|---|---|
| public boolean isGlobalOnly() Return the flag indicating whether only global messages (that is, messages with no associated client identifier) should be rendered. Mutually exclusive with the "for" property which takes precedence. Defaults to false.
| |
| isRedisplay | back to summary |
|---|---|
public boolean isRedisplay()
| |
| isShowDetail | back to summary |
|---|---|
| public boolean isShowDetail() Return the flag indicating whether the
| |
| isShowSummary | back to summary |
|---|---|
| public boolean isShowSummary() Return the flag indicating whether the
| |
| setFor | back to summary |
|---|---|
| public void setFor(String newFor) Set the client identifier of the component for which this component represents associated message(s) (if any). This property must be set before the message is displayed.
| |
| setGlobalOnly | back to summary |
|---|---|
| public void setGlobalOnly(boolean globalOnly) Set the flag indicating whether only global messages (that is, messages with no associated client identifier) should be rendered.
| |
| setRedisplay | back to summary |
|---|---|
| public void setRedisplay(boolean redisplay) Set the flag indicating whether the
| |
| setShowDetail | back to summary |
|---|---|
| public void setShowDetail(boolean showDetail) Set the flag indicating whether the
| |
| setShowSummary | back to summary |
|---|---|
| public void setShowSummary(boolean showSummary) Set the flag indicating whether the
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final UIMessages. | |
| public static final UIMessages. | |
| public static final UIMessages. | |
| public static final UIMessages. | |
| public static final UIMessages. | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. |
| public static UIMessages. | |
| public static UIMessages. |
| forValue | back to summary |
|---|---|
| public static final UIMessages. | |
| globalOnly | back to summary |
|---|---|
| public static final UIMessages. | |
| redisplay | back to summary |
|---|---|
| public static final UIMessages. | |
| showDetail | back to summary |
|---|---|
| public static final UIMessages. | |
| showSummary | back to summary |
|---|---|
| public static final UIMessages. | |
| toString | back to summary |
|---|---|
| pack-priv String toString | |
| PropertyKeys | back to summary |
|---|---|
| private PropertyKeys(String toString) | |
| PropertyKeys | back to summary |
|---|---|
| private PropertyKeys() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static UIMessages. | |
| values | back to summary |
|---|---|
| public static UIMessages. | |