protected static class FlowFacesContext.FlowFacesMessage extends Message implements MessageResolver
FacesMessage to a Spring Message. This adapter is required to allow
FacesMessages to be registered with Spring whilst still retaining their mutable nature. It is not
uncommon for FacesMessages to be changed after they have been added to a FacesContext, for
example, from a PhaseListener.
NOTE: Only FacesMessage instances are directly adapted, any subclasses will be
converted to the standard FacesMessage implementation. This is to protect against bugs such as SWF-1073.
For convenience this class also implements the MessageResolver interface.
| Constructor and Description |
|---|
FlowFacesMessage(FlowFacesContext.FacesMessageSource source,
javax.faces.application.FacesMessage message) |
| Modifier and Type | Method and Description |
|---|---|
javax.faces.application.FacesMessage |
getFacesMessage() |
Severity |
getSeverity()
The severity of this message.
|
java.lang.String |
getText()
The message text.
|
Message |
resolveMessage(org.springframework.context.MessageSource messageSource,
java.util.Locale locale)
Resolve the message from the message source using the current locale.
|
java.lang.String |
toString() |
public FlowFacesMessage(FlowFacesContext.FacesMessageSource source, javax.faces.application.FacesMessage message)
public java.lang.String getText()
Messagepublic Severity getSeverity()
MessagegetSeverity in class Messagepublic Message resolveMessage(org.springframework.context.MessageSource messageSource, java.util.Locale locale)
MessageResolverresolveMessage in interface MessageResolvermessageSource - the message source, an abstraction for a resource bundlelocale - the current locale of this requestpublic javax.faces.application.FacesMessage getFacesMessage()
FacesMessage adapted by this class.