Class LoadMessagesComponent

All Implemented Interfaces:
PartialStateHolder, StateHolder, TransientStateHolder, ValueHolder, ComponentSystemEventListener, FacesListener, SystemEventListenerHolder, EventListener

public class LoadMessagesComponent extends UIOutput
Custom component to load a MessagesMap.
  • Constructor Details

    • LoadMessagesComponent

      public LoadMessagesComponent()
      Create a new LoadMessagesComponent with default properties.
  • Method Details

    • getFamily

      public String getFamily()
      Return the component family to which this component belongs.
      Overrides:
      getFamily in class UIOutput
    • getMessages

      public String getMessages()
      Gets the name of the MessageResources to expose, or null for the default MessageResources for this application module.
      Returns:
      the name of the MessageResources
    • setMessages

      public void setMessages(String messages)
      Sets the name of the MessageResources to expose, or null for the default MessageResources for this application module.
      Parameters:
      messages - the name of the MessageResources
    • getVar

      public String getVar()
      Gets the request attribute key under which the MessagesMap will be exposed.
      Returns:
      the request attribute key
    • setVar

      public void setVar(String var)
      Sets the request attribute key under which the MessagesMap will be exposed.
      Parameters:
      var - the request attribute key
    • restoreState

      public void restoreState(FacesContext context, Object state)
      Restore the state of this component.
      Specified by:
      restoreState in interface StateHolder
      Overrides:
      restoreState in class UIOutput
      Parameters:
      context - FacesContext for the current request
      state - State object from which to restore our state
    • saveState

      public Object saveState(FacesContext context)
      Save the state of this component.
      Specified by:
      saveState in interface StateHolder
      Overrides:
      saveState in class UIOutput
      Parameters:
      context - FacesContext for the current request