public final class DialogPhaseListener extends Object implements javax.faces.event.PhaseListener
Phase listener that saves and restores the dialog identifier for the
currently active dialog, if any. Based on the presence of certain
request parameters, it can also cause a new DialogContext
instance to be created and started, optionally associated with a parent
DialogContext
instance also belonging to the same user.
Constructor and Description |
---|
DialogPhaseListener()
Creates a new instance of DialogPhaseListener.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPhase(javax.faces.event.PhaseEvent event)
After the Restore View phase, retrieve the current
dialog identifier (if any), and restore the corresponding
DialogContext . |
void |
beforePhase(javax.faces.event.PhaseEvent event)
Before the Render Response phase, acquire the current
dialog identifier (if any), and store it in the view.
|
javax.faces.event.PhaseId |
getPhaseId()
Return the phase identifier we are interested in.
|
public DialogPhaseListener()
Creates a new instance of DialogPhaseListener.
public javax.faces.event.PhaseId getPhaseId()
Return the phase identifier we are interested in.
getPhaseId
in interface javax.faces.event.PhaseListener
public void afterPhase(javax.faces.event.PhaseEvent event)
After the Restore View phase, retrieve the current
dialog identifier (if any), and restore the corresponding
DialogContext
. If this view is not currently executing
a DialogContext
instance, optionally create a new
instance based o the presence of request parameters.
afterPhase
in interface javax.faces.event.PhaseListener
event
- The phase event to be processedpublic void beforePhase(javax.faces.event.PhaseEvent event)
Before the Render Response phase, acquire the current dialog identifier (if any), and store it in the view.
beforePhase
in interface javax.faces.event.PhaseListener
event
- The phase event to be processedCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.