Name
UIMessages
Synopsis
This class represents a messages
component. A messages component
renders message queued for a specific component as well as
“global messages” (messages queued
without a component ID). The default rendererType
is javax.faces.Messages
.
Class name: |
javax.faces.component.UIMessages |
Extends: |
javax.faces.component.UIComponentBase |
Implements: |
javax.faces.component.StateHolder |
Fields
-
public static String COMPONENT_FAMILY
The component family:
javax.faces.Messages
.-
public static String COMPONENT_TYPE
The component family:
javax.faces.Messages
.
Constructor
-
public UIMessages( );
Creates a new instance.
Methods
-
public String getFamily()
Returns the component family ID.
-
public boolean isGlobalOnly()
Returns
true
if only global messages are rendered.-
public boolean isShowDetail()
Returns
true
if the message details are rendered.-
public boolean isShowSummary()
Returns
true
if the message summary are rendered.-
public void restoreState(javax.faces.context.FacesContext context, Object state)
Restores the state for this instance from the provided value; an
Object
previously returned by thesaveState()
method.-
public Object saveState(javax.faces.context.FacesContext context)
Returns the state for this instance as an
Object
to be passed to therestoreState()
method when the instance is restored for the next request.-
public void setGlobalOnly(boolean globalOnly)
Sets the
globalOnly
property. The default isfalse
.-
public void setShowDetail(boolean showDetail)
Sets the
showDetail ...
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.