George Gastaldi created FORGE-738:
-------------------------------------
Summary: Support Global Producers
Key: FORGE-738
URL:
https://issues.jboss.org/browse/FORGE-738
Project: Forge
Issue Type: Enhancement
Affects Versions: 2.0.0.Alpha1
Reporter: George Gastaldi
Priority: Blocker
Fix For: 2.0.0.Alpha1
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:
{code}
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]
{code}
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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira