Class FlowFacesContext.FlowFacesMessage
java.lang.Object
org.springframework.binding.message.Message
org.springframework.faces.webflow.FlowFacesContext.FlowFacesMessage
- All Implemented Interfaces:
Serializable,org.springframework.binding.message.MessageResolver
- Enclosing class:
- FlowFacesContext
protected static class FlowFacesContext.FlowFacesMessage
extends org.springframework.binding.message.Message
implements org.springframework.binding.message.MessageResolver
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
ConstructorsConstructorDescriptionFlowFacesMessage(FlowFacesContext.FacesMessageSource source, jakarta.faces.application.FacesMessage message) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.faces.application.FacesMessageorg.springframework.binding.message.SeveritygetText()org.springframework.binding.message.MessageresolveMessage(org.springframework.context.MessageSource messageSource, Locale locale) toString()Methods inherited from class org.springframework.binding.message.Message
getSource, hasField
-
Constructor Details
-
FlowFacesMessage
public FlowFacesMessage(FlowFacesContext.FacesMessageSource source, jakarta.faces.application.FacesMessage message)
-
-
Method Details
-
getText
- Overrides:
getTextin classorg.springframework.binding.message.Message
-
getSeverity
public org.springframework.binding.message.Severity getSeverity()- Overrides:
getSeverityin classorg.springframework.binding.message.Message
-
toString
- Overrides:
toStringin classorg.springframework.binding.message.Message
-
resolveMessage
public org.springframework.binding.message.Message resolveMessage(org.springframework.context.MessageSource messageSource, Locale locale) - Specified by:
resolveMessagein interfaceorg.springframework.binding.message.MessageResolver
-
getFacesMessage
public jakarta.faces.application.FacesMessage getFacesMessage()- Returns:
- The original
FacesMessageadapted by this class.
-