org.sakaiproject.jsf.app
Class MessageSaver

java.lang.Object
  extended byorg.sakaiproject.jsf.app.MessageSaver

public class MessageSaver
extends Object

MessageSaver has utility methods to save FacesMessage objects from one request to the next request (the messages are saved attributes of the current HttpSession).

Version:
$Revision: 632 $
Author:
University of Michigan, Sakai Software Development Team

Field Summary
static String ATTR_MSGS
          The session attribute name used to store the latest batch of messages.
 
Constructor Summary
MessageSaver()
           
 
Method Summary
static void restoreMessages(FacesContext context)
          Restore saved messages.
static void saveMessages(FacesContext context)
          Save current messages for later restoration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_MSGS

public static final String ATTR_MSGS
The session attribute name used to store the latest batch of messages.

See Also:
Constant Field Values
Constructor Detail

MessageSaver

public MessageSaver()
Method Detail

restoreMessages

public static void restoreMessages(FacesContext context)
Restore saved messages.

Parameters:
context - The current faces context.

saveMessages

public static void saveMessages(FacesContext context)
Save current messages for later restoration.

Parameters:
context - The current faces context.