MyFaces CODI
  1. MyFaces CODI
  2. EXTCDI-127

Injection in FacesConverter does not work

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.2
    • Fix Version/s: 0.9.3
    • Labels:
      None
    • Environment:
      Myfaces 2.0.3, CODI 0.9.2, ExtVal 2.0.4, OWB 1.0.0, PrimeFaces 2.2-RC2

      Description

      The bean which sould be injected in my converter is always null.

      I also added some logging to CODI, to see where the problem is.
      The bean was created and injected into the converter but it seems as the used converter is not the converter which was created by CODI.

      Is there something wrong in my setup or is this really a bug?

      -----------------------------------------------------------

      @Advanced
      @FacesConverter("localeConverter")
      public class LocaleConverter implements Converter {

      @Inject private LocaleService localeService;

      -----------------------------------------------------------

      <h:form>
      <h:selectOneMenu
      id="selectLocaleMenu"
      value="#

      {localeController.selectedLocale}

      "
      onchange="this.form.submit()"
      converter="localeConverter">
      <f:selectItems
      value="#

      {allLocalesController.locales}

      "
      var="locale"
      itemLabel="#

      {locale.name}

      "
      itemValue="#

      {locale}

      "/>
      </h:selectOneMenu>
      </h:form>

        Issue Links

          Activity

          Thomas Andraschko created issue -
          Jakob Korherr made changes -
          Field Original Value New Value
          Assignee Jakob Korherr [ jakobkorherr ]
          Jakob Korherr made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Gerhard Petracek made changes -
          Priority Major [ 3 ] Minor [ 4 ]
          Gerhard Petracek made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Fix Version/s 0.9.3 [ 12316038 ]
          Resolution Fixed [ 1 ]
          Gerhard Petracek made changes -
          Component/s JEE-JSF12-Module [ 12313496 ]
          Gerhard Petracek made changes -
          Assignee Jakob Korherr [ jakobkorherr ] Gerhard Petracek [ gpetracek ]
          Gerhard Petracek made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Gerhard Petracek made changes -
          Link This issue relates to EXTCDI-227 [ EXTCDI-227 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development