Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
EXTCDI-11 is based on the event system of cdi
that means esp. in large applications there might be different kinds of possible problems.
(currently there might be also issues in combination with @View and custom scopes)
it should be possible to annotate methods with @BeforePhase and @AfterPhase (methods without parameters or with javax.faces.event.PhaseEvent as parameter).
they will be invoked if the bean is used as page-bean for the current view (see typesafe view configs)
@BeforePhase(PhaseId.RESTORE_VIEW) as well as @BeforePhase(PhaseId.ANY_PHASE) aren't supported.
(in case of restore view you have to use phase-observer-methods (see EXTCDI-11))
examples:
@BeforePhase(RENDER_RESPONSE)
protected void preRendering(PhaseEvent phaseEvent)
{
//...
}
@AfterPhase(PhaseId.UPDATE_MODEL_VALUES)
protected void postModelUpdate()
{
//...
}