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 Details

  • Method Details

    • getText

      public String getText()
      Overrides:
      getText in class org.springframework.binding.message.Message
    • getSeverity

      public org.springframework.binding.message.Severity getSeverity()
      Overrides:
      getSeverity in class org.springframework.binding.message.Message
    • toString

      public String toString()
      Overrides:
      toString in class org.springframework.binding.message.Message
    • resolveMessage

      public org.springframework.binding.message.Message resolveMessage(org.springframework.context.MessageSource messageSource, Locale locale)
      Specified by:
      resolveMessage in interface org.springframework.binding.message.MessageResolver
    • getFacesMessage

      public jakarta.faces.application.FacesMessage getFacesMessage()
      Returns:
      The original FacesMessage adapted by this class.