request-lifecycle callbacks via view definitions
------------------------------------------------

                 Key: EXTCDI-46
                 URL: https://issues.apache.org/jira/browse/EXTCDI-46
             Project: MyFaces CODI
          Issue Type: New Feature
          Components: JEE-JSF12-Module, JEE-JSF20-Module
            Reporter: Gerhard Petracek


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 definitions)

@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()
{
  //...
}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to