- All Implemented Interfaces:
- Serializable, EventListener, javax.faces.event.PhaseListener
public class MultiPageMessagesSupport
extends Object
implements javax.faces.event.PhaseListener
Enables messages to be rendered on different pages from which they were set.
After each phase where messages may be added, this moves the messages
from the page-scoped FacesContext to the session-scoped session map.
Before messages are rendered, this moves the messages from the
session-scoped session map back to the page-scoped FacesContext.
Only global messages, not associated with a particular component, are
moved. Component messages cannot be rendered on pages other than the one on
which they were added.
To enable multi-page messages support, add a lifecycle
block to your
faces-config.xml file. That block should contain a single
phase-listener
block containing the fully-qualified classname
of this file.
- Author:
- Jesse Wilson jesse[AT]odel.on.ca
- See Also:
- Serialized Form