MyFaces CODI
  1. MyFaces CODI
  2. EXTCDI-46

request-lifecycle callbacks via view configs

    Details

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

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Gerhard Petracek
            Reporter:
            Gerhard Petracek
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development