Class MessageListener

  • All Implemented Interfaces:
    EventListener, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.TransientStateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, org.primefaces.component.api.UINotification

    public class MessageListener
    extends javax.faces.component.UIMessages
    implements org.primefaces.component.api.UINotification
    Helper JSF component that can be used to listen to faces messages.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String COMPONENT_FAMILY  
      static String COMPONENT_TYPE  
      static String DEFAULT_RENDERER  
      • Fields inherited from class javax.faces.component.UIComponent

        ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageListener()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getFamily()  
      javax.el.MethodExpression getListener()  
      String getOnMessage()  
      String getSeverity()  
      boolean isMarkMessagesAsRendered()  
      boolean isSkipDetailIfEqualsSummary()  
      void setListener​(javax.el.MethodExpression Listener)  
      void setMarkMessagesAsRendered​(boolean markMessagesAsRendered)  
      void setOnMessage​(String onMessage)  
      void setSeverity​(String severity)  
      void setSkipDetailIfEqualsSummary​(boolean skipDetailIfEqualsSummary)  
      • Methods inherited from class javax.faces.component.UIMessages

        getFor, isGlobalOnly, isRedisplay, isShowDetail, isShowSummary, setFor, setGlobalOnly, setRedisplay, setShowDetail, setShowSummary
      • Methods inherited from class javax.faces.component.UIComponentBase

        addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
      • Methods inherited from class javax.faces.component.UIComponent

        encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
      • Methods inherited from interface org.primefaces.component.api.UINotification

        isRedisplay
    • Constructor Detail

      • MessageListener

        public MessageListener()
    • Method Detail

      • getFamily

        public String getFamily()
        Overrides:
        getFamily in class javax.faces.component.UIMessages
      • getListener

        public javax.el.MethodExpression getListener()
      • getOnMessage

        public String getOnMessage()
      • getSeverity

        public String getSeverity()
        Specified by:
        getSeverity in interface org.primefaces.component.api.UINotification
      • isMarkMessagesAsRendered

        public boolean isMarkMessagesAsRendered()
      • isSkipDetailIfEqualsSummary

        public boolean isSkipDetailIfEqualsSummary()
        Specified by:
        isSkipDetailIfEqualsSummary in interface org.primefaces.component.api.UINotification
      • setListener

        public void setListener​(javax.el.MethodExpression Listener)
      • setMarkMessagesAsRendered

        public void setMarkMessagesAsRendered​(boolean markMessagesAsRendered)
      • setOnMessage

        public void setOnMessage​(String onMessage)
      • setSeverity

        public void setSeverity​(String severity)
      • setSkipDetailIfEqualsSummary

        public void setSkipDetailIfEqualsSummary​(boolean skipDetailIfEqualsSummary)