MyFaces CODI
  1. MyFaces CODI
  2. EXTCDI-227

Injection in FacesConverter in composite components

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.2
    • Fix Version/s: 1.0.2
    • Component/s: JEE-JSF20-Module
    • Labels:
      None

      Description

      I have a converter annotated with @Advanced that gets a bean injected into a field via @Inject. On first page view the converter works as expected, but in subsequent ajax requests the field annotated with @Inject is not injected.

        Issue Links

          Activity

          Hide
          Michael Kurz added a comment -

          Test webapp to demonstrate the problem.

          Show
          Michael Kurz added a comment - Test webapp to demonstrate the problem.
          Hide
          Michael Kurz added a comment -

          Additional info: Using the bean manager to resolve the bean that should be injected works like expected.

          Show
          Michael Kurz added a comment - Additional info: Using the bean manager to resolve the bean that should be injected works like expected.
          Hide
          Michael Kurz added a comment -

          I just analyzed the problem with Gerhard and it seems to occur in RestoreInjectionPointsObserver. Inside processComponents() getChildren() is used to walk the tree which does not work for components inside composite components.

          Show
          Michael Kurz added a comment - I just analyzed the problem with Gerhard and it seems to occur in RestoreInjectionPointsObserver. Inside processComponents() getChildren() is used to walk the tree which does not work for components inside composite components.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development