Uses of Class
jakarta.faces.application.FacesMessage
Package
Description
-
Uses of FacesMessage in com.sun.faces.config.initfacescontext
Modifier and TypeMethodDescriptionNoOpFacesContext.getMessageList()
NoOpFacesContext.getMessageList
(String clientId) NoOpFacesContext.getMessages()
NoOpFacesContext.getMessages
(String clientId) Modifier and TypeMethodDescriptionvoid
NoOpFacesContext.addMessage
(String clientId, FacesMessage message) -
Uses of FacesMessage in com.sun.faces.context
Modifier and TypeMethodDescriptionFacesContextImpl.getMessageList()
FacesContextImpl.getMessageList
(String clientId) FacesContextImpl.getMessages()
FacesContextImpl.getMessages
(String clientId) Modifier and TypeMethodDescriptionvoid
FacesContextImpl.addMessage
(String clientId, FacesMessage message) -
Uses of FacesMessage in com.sun.faces.ext.component
Modifier and TypeMethodDescriptionstatic FacesMessage
MessageFactory.getMessage
(FacesContext context, String messageId, Object... params) Creates and returns a FacesMessage for the specified Locale. -
Uses of FacesMessage in com.sun.faces.facelets.compiler
Modifier and TypeMethodDescriptionCompilationMessageHolder.getNamespacePrefixMessages
(FacesContext context, String prefix) CompilationMessageHolderImpl.getNamespacePrefixMessages
(FacesContext context, String prefix) -
Uses of FacesMessage in com.sun.faces.util
Modifier and TypeMethodDescriptionstatic FacesMessage
MessageUtils.getExceptionMessage
(String messageId, Object... params) Creates a newFacesMessage
instance using the specified #messageId.static FacesMessage
MessageFactory.getMessage
(FacesContext context, String messageId, FacesMessage.Severity severity, Object... params) static FacesMessage
MessageFactory.getMessage
(FacesContext context, String messageId, Object... params) Creates and returns a FacesMessage for the specified Locale.static FacesMessage
MessageFactory.getMessage
(String messageId, FacesMessage.Severity severity, Object... params) static FacesMessage
MessageFactory.getMessage
(String messageId, Object... params) This version of getMessage() is used for localizing implementation specific messages.static FacesMessage
MessageFactory.getMessage
(Locale locale, String messageId, FacesMessage.Severity severity, Object... params) static FacesMessage
MessageFactory.getMessage
(Locale locale, String messageId, Object... params) Creates and returns a FacesMessage for the specified Locale. -
Uses of FacesMessage in jakarta.faces.component
Modifier and TypeMethodDescriptionUpdateModelException.getFacesMessage()
Return theFacesMessage
passed to the constructor.ModifierConstructorDescriptionUpdateModelException
(FacesMessage facesMessage, Throwable cause) Store the argumentfacesMessage
so it may be returned fromUpdateModelException.getFacesMessage()
and pass the argumentcause
to the super constructor. -
Uses of FacesMessage in jakarta.faces.context
Modifier and TypeMethodDescriptionFacesContext.getMessageList()
LikeFacesContext.getMessages()
, but returns aList<FacesMessage>
, enabling use from Jakarta Expression Language expressions.FacesContext.getMessageList
(String clientId) LikeFacesContext.getMessages(java.lang.String)
, but returns aList<FacesMessage>
of messages for the component with client id matching argumentclientId
.FacesContextWrapper.getMessageList()
The default behavior of this method is to callFacesContext.getMessageList()
on the wrappedFacesContext
object.FacesContextWrapper.getMessageList
(String clientId) The default behavior of this method is to callFacesContext.getMessageList(String)
on the wrappedFacesContext
object.abstract Iterator
<FacesMessage> FacesContext.getMessages()
Return anIterator
over theFacesMessage
s that have been queued, whether or not they are associated with any specific client identifier.abstract Iterator
<FacesMessage> FacesContext.getMessages
(String clientId) Return anIterator
over theFacesMessage
s that have been queued that are associated with the specified client identifier (ifclientId
is notnull
), or over theFacesMessage
s that have been queued that are not associated with any specific client identifier (ifclientId
isnull
).FacesContextWrapper.getMessages()
The default behavior of this method is to callFacesContext.getMessages()
on the wrappedFacesContext
object.FacesContextWrapper.getMessages
(String clientId) The default behavior of this method is to callFacesContext.getMessages(String)
on the wrappedFacesContext
object.Modifier and TypeMethodDescriptionabstract void
FacesContext.addMessage
(String clientId, FacesMessage message) Append aFacesMessage
to the set of messages associated with the specified client identifier, ifclientId
is notnull
.void
FacesContextWrapper.addMessage
(String clientId, FacesMessage message) The default behavior of this method is to callFacesContext.addMessage(String, FacesMessage)
on the wrappedFacesContext
object. -
Uses of FacesMessage in jakarta.faces.convert
Modifier and TypeMethodDescriptionConverterException.getFacesMessage()
Returns the FacesMessage associated with this exception; this will only be available if the converter that thew this exception instance placed it there.ModifierConstructorDescriptionConverterException
(FacesMessage message) Construct a new exception with the specified detail message and no root cause.ConverterException
(FacesMessage message, Throwable cause) Construct a new exception with the specified detail message and root cause. -
Uses of FacesMessage in jakarta.faces.validator
Modifier and TypeMethodDescriptionValidatorException.getFacesMessage()
Returns theFacesMessage
associated with the exception.Modifier and TypeMethodDescriptionValidatorException.getFacesMessages()
If this instance was created with a constructor that takesCollection<FacesMessage>
, this method returns the passed collection, otherwise this method returnsnull
.ModifierConstructorDescriptionValidatorException
(FacesMessage message) Construct a new exception with the specified message and no root cause.ValidatorException
(FacesMessage message, Throwable cause) Construct a new exception with the specified detail message and root cause.ModifierConstructorDescriptionValidatorException
(Collection<FacesMessage> messages) Allow this one exception to contain multiple messages.ValidatorException
(Collection<FacesMessage> messages, Throwable cause) Allow this one exception to contain multiple messages, while passing on the root cause to the superclass