You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Gerhard Petracek (JIRA)" <de...@myfaces.apache.org> on 2010/03/04 02:11:27 UTC

[jira] Created: (EXTCDI-11) phase listener method annotations

phase listener method annotations
---------------------------------

                 Key: EXTCDI-11
                 URL: https://issues.apache.org/jira/browse/EXTCDI-11
             Project: MyFaces CODI
          Issue Type: New Feature
            Reporter: Gerhard Petracek


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

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


[jira] Resolved: (EXTCDI-11) phase listener method annotations

Posted by "Gerhard Petracek (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/EXTCDI-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek resolved EXTCDI-11.
------------------------------------

    Resolution: Fixed

> phase listener method annotations
> ---------------------------------
>
>                 Key: EXTCDI-11
>                 URL: https://issues.apache.org/jira/browse/EXTCDI-11
>             Project: MyFaces CODI
>          Issue Type: New Feature
>            Reporter: Gerhard Petracek
>            Assignee: Gerhard Petracek
>
> 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
> {
>   //...
> }

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