Class FlowFacesContext.FlowFacesMessage
java.lang.Object
org.springframework.binding.message.Message
org.springframework.faces.webflow.FlowFacesContext.FlowFacesMessage
- All Implemented Interfaces:
Serializable
,MessageResolver
- Enclosing class:
- FlowFacesContext
Adapter class to convert a
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.
- See Also:
-
Constructor Summary
ConstructorDescriptionFlowFacesMessage
(FlowFacesContext.FacesMessageSource source, jakarta.faces.application.FacesMessage message) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.faces.application.FacesMessage
The severity of this message.getText()
The message text.resolveMessage
(org.springframework.context.MessageSource messageSource, Locale locale) Resolve the message from the message source using the current locale.toString()
-
Constructor Details
-
FlowFacesMessage
public FlowFacesMessage(FlowFacesContext.FacesMessageSource source, jakarta.faces.application.FacesMessage message)
-
-
Method Details
-
getText
Description copied from class:Message
The message text. The text is the message's communication payload. -
getSeverity
Description copied from class:Message
The severity of this message. The severity indicates the intensity or priority of the communication.- Overrides:
getSeverity
in classMessage
- Returns:
- the message severity
-
toString
-
resolveMessage
public Message resolveMessage(org.springframework.context.MessageSource messageSource, Locale locale) Description copied from interface:MessageResolver
Resolve the message from the message source using the current locale.- Specified by:
resolveMessage
in interfaceMessageResolver
- Parameters:
messageSource
- the message source, an abstraction for a resource bundlelocale
- the current locale of this request- Returns:
- the resolved message
-
getFacesMessage
public jakarta.faces.application.FacesMessage getFacesMessage()- Returns:
- The original
FacesMessage
adapted by this class.
-