Uploaded image for project: 'MyFaces CODI'
  1. MyFaces CODI
  2. EXTCDI-11

phase listener method annotations

    XMLWordPrintableJSON

Details

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

      Attachments

        Activity

          People

            gpetracek Gerhard Petracek
            gpetracek Gerhard Petracek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: