com.evolveum.midpoint.web.util
Class MultiPageMessagesSupport
java.lang.Object
com.evolveum.midpoint.web.util.MultiPageMessagesSupport
- All Implemented Interfaces:
- java.io.Serializable, java.util.EventListener, javax.faces.event.PhaseListener
public class MultiPageMessagesSupport
- extends java.lang.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
Method Summary |
void |
afterPhase(javax.faces.event.PhaseEvent event)
|
void |
beforePhase(javax.faces.event.PhaseEvent event)
|
javax.faces.event.PhaseId |
getPhaseId()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiPageMessagesSupport
public MultiPageMessagesSupport()
getPhaseId
public javax.faces.event.PhaseId getPhaseId()
- Specified by:
getPhaseId
in interface javax.faces.event.PhaseListener
beforePhase
public void beforePhase(javax.faces.event.PhaseEvent event)
- Specified by:
beforePhase
in interface javax.faces.event.PhaseListener
afterPhase
public void afterPhase(javax.faces.event.PhaseEvent event)
- Specified by:
afterPhase
in interface javax.faces.event.PhaseListener
Copyright © 2011 evolveum. All Rights Reserved.