How can I implement a PhaseListener
which runs at end of the JSF lifecycle?
In jsf 2
you can use
to hook MyPhaseListener
for some facelet
. MyPhaseListener
should implement PhaseListener
and override
afterPhase
- with code to be run after end of phase beforePhase
- with code to be run before phase started getPhaseId
- PhaseId
enum specifying name of phase for which the listener to be invoked
(PhaseId.RENDER_RESPONSE
as last phase of lifecycle)