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

          Gerhard Petracek made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Assignee Gerhard Petracek [ gpetracek ]
          Gerhard Petracek made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.0.2 [ 12317614 ]
          Resolution Fixed [ 1 ]
          Gerhard Petracek made changes -
          Summary @Advanced not working correctly with Ajax Injection in FacesConverter in composite components
          Gerhard Petracek made changes -
          Link This issue is related to EXTCDI-127 [ EXTCDI-127 ]
          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.
          Michael Kurz made changes -
          Priority Major [ 3 ] Minor [ 4 ]
          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.
          Michael Kurz made changes -
          Field Original Value New Value
          Attachment EXTCDI-227-testapp.zip [ 12495069 ]
          Hide
          Michael Kurz added a comment -

          Test webapp to demonstrate the problem.

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development