Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4126

Implicit objects flowScope and view cannot be injected using CDI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0-beta
    • 2.3.0
    • None
    • None

    Description

      The implicit objects

      #{flowScope}

      annotated @FlowMap and

      #{view}

      which results in UIViewRoot cannot be injected using CDI.

      For example:

      @Inject
      private UIViewRoot viewRoot;

      @Inject
      @FlowMap
      private Map<Object, Object> flowMap;

      The above results in the following errors respectively:

      An exception occurred while starting the application ELImplicitObjectsViaCDI. The exception message was: com.ibm.ws.container.service.state.StateChangeException: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type UIViewRoot with qualifiers @Default
      at injection point [BackedAnnotatedField] @Inject private com.ibm.ws.jsf23.fat.beans.ELImplicitObjectBean.viewRoot

      An exception occurred while starting the application ELImplicitObjectsViaCDI. The exception message was: com.ibm.ws.container.service.state.StateChangeException: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Map<Object, Object> with qualifiers @FlowMap
      at injection point [BackedAnnotatedField] @Inject @FlowMap private com.ibm.ws.jsf23.fat.beans.ELImplicitObjectBean.flowMap

      A patch is provided.

      Attachments

        1. MYFACES-4126.patch
          2 kB
          Eduardo Breijo

        Activity

          People

            eduardobreijo Eduardo Breijo
            eduardobreijo Eduardo Breijo
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: