Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-738

Support Global Producers

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Obsolete
    • Icon: Blocker Blocker
    • 2.0.0.Alpha1
    • 2.0.0.Alpha1
    • None
    • None

      The UI API has a UIInputProducer, which produces UIInput objects based on the injection point (Parameterized name used, attribute name, etc).

      However, when developing an addon which @Inject UIInput<String> firstname for example, the following error is thrown:

      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [UIInput<String>] with qualifiers [@Default] at injection point [[UnbackedAnnotatedField] @Inject private org.jboss.forge.ui.MyFirstWizard.firstName]
      

      This is due the fact that you can't inject between containers unless it's @Remote. Forge 2 should support registration of a global producer, which just adds that producer to all addons on which it is depended

            Unassigned Unassigned
            rhn-support-ggastald George Gastaldi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: