Class NotificationBean

  • All Implemented Interfaces:
    Serializable

    @Named
    @SessionScoped
    public class NotificationBean
    extends AJSFContext
    Bean that stores all faces messages that should be redisplayed in the notification history to the top right.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • Constructor Detail

      • NotificationBean

        public NotificationBean()
    • Method Detail

      • getSessionFacesMessages

        public List<SessionFacesMessage> getSessionFacesMessages()
        Returns:
        A list of messages currently saved in the session.
      • onMessages

        public void onMessages​(MessageListenerEvent event)
        Callback for MessageListener component that saves the given FacesMessages in the session.
        Parameters:
        event - Message event that occurred.
      • addSessionMessages

        public void addSessionMessages​(List<javax.faces.application.FacesMessage> messages)
        Saves the given FacesMessages in the session.
        Parameters:
        messages - Message to be saved.
      • addSessionMessage

        public void addSessionMessage()
        Saves the given message in the session.
      • getSessionFacesMessagesJson

        public String getSessionFacesMessagesJson()
        Returns:
        A list of messages currently saved in the session, serialized as a JSON array.