org.sakaiproject.tool.section.jsf.backingbean
Class MessagingBean

java.lang.Object
  extended byorg.sakaiproject.tool.section.jsf.backingbean.MessagingBean

public class MessagingBean
extends Object

A session-scoped bean to handle jsf messages across redirects.

Author:
Josh Holtzman

Constructor Summary
MessagingBean()
           
 
Method Summary
 void addMessage(FacesMessage message)
          Adds a unique message.
 List getMessagesAndClear()
          Returns the current list of FacesMessages, then removes them from the local list.
 boolean hasMessages()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagingBean

public MessagingBean()
Method Detail

hasMessages

public boolean hasMessages()

getMessagesAndClear

public List getMessagesAndClear()
Returns the current list of FacesMessages, then removes them from the local list.

Returns:

addMessage

public void addMessage(FacesMessage message)
Adds a unique message.

Parameters:
message -