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

protected static class FlowFacesContext.FlowFacesMessage extends Message implements 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()
      Description copied from class: Message
      The message text. The text is the message's communication payload.
      Overrides:
      getText in class Message
      Returns:
      the message text
    • getSeverity

      public Severity getSeverity()
      Description copied from class: Message
      The severity of this message. The severity indicates the intensity or priority of the communication.
      Overrides:
      getSeverity in class Message
      Returns:
      the message severity
    • toString

      public String toString()
      Overrides:
      toString in class Message
    • 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 interface MessageResolver
      Parameters:
      messageSource - the message source, an abstraction for a resource bundle
      locale - 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.