[ 
https://issues.apache.org/jira/browse/EXTCDI-46?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gerhard Petracek reopened EXTCDI-46:
------------------------------------

      Assignee: Gerhard Petracek

> request-lifecycle callbacks via view configs
> --------------------------------------------
>
>                 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
>            Assignee: Gerhard Petracek
>             Fix For: 0.9.0
>
>
> 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()
> {
>   //...
> }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to