Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
based on the event system of cdi it should be possible to implement observers for lifecycle events.
e.g.:
public void preRenderView1(@Observes @BeforePhase(PhaseId.RENDER_RESPONSE) PhaseEvent event){}
in combination with the @View annotation it should be possible to restrict one phase listener methods (or all phase listener methods within a class) to a given view-id.
e.g.:
@View("/helloMyFacesCodi.jsp")
public void preRenderView2(@Observes @BeforePhase(PhaseId.INVOKE_APPLICATION) PhaseEvent event) {}
or
@View(
{"/page1.xhtml", "/page3.xhtml"})
public class HelloCodiBean
{
//...
}