This component is
responsible for displaying messages for a specific UIComponent, identified by a clientId or component id relative to the
closest ancestor NamingContainer. The component
obtains the messages from the FacesContext.
By default, the rendererType property must be set to
"javax.faces.Message". 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 Identifier of the component for which to render error messages. |
| 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 | 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. | |
| UIMessage | back to summary |
|---|---|
| public UIMessage() 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 Identifier
of the component for which to render error messages. If this
component is within the same NamingContainer as the target
component, this must be the component identifier. Otherwise, it
must be an absolute component identifier (starting with ":"). See
the
| |
| 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 identifier of the component for which this component represents associated message(s) (if any). This property must be set before the message is displayed.
| |
| 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 UIMessage. | |
| public static final UIMessage. | |
| public static final UIMessage. | |
| public static final UIMessage. | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. |
| public static UIMessage. | |
| public static UIMessage. |
| forValue | back to summary |
|---|---|
| public static final UIMessage. | |
| redisplay | back to summary |
|---|---|
| public static final UIMessage. | |
| showDetail | back to summary |
|---|---|
| public static final UIMessage. | |
| showSummary | back to summary |
|---|---|
| public static final UIMessage. | |
| 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 UIMessage. | |
| values | back to summary |
|---|---|
| public static UIMessage. | |