[JBoss JIRA] (FORGE-2767) @WithAttributes should allow its use on Constructor injections
by Marcelo "Ataxexe" Guimarães (JIRA)
Marcelo "Ataxexe" Guimarães created FORGE-2767:
--------------------------------------------------
Summary: @WithAttributes should allow its use on Constructor injections
Key: FORGE-2767
URL: https://issues.jboss.org/browse/FORGE-2767
Project: Forge
Issue Type: Bug
Components: UI - API
Affects Versions: 3.7.2.Final
Environment: Does not apply
Reporter: Marcelo "Ataxexe" Guimarães
Priority: Minor
When creating a Command, you can specify the attributes of a UI field by using @WithAttributes and @Inject:
{code:java}
@Inject
@WithAttributes(label = "Version")
private UIInput<String> version;
{code}
The problem is we can't use this approach with constructor injection because @WithAttributes is not allowed on parameters.
PS: This is easily avoided by instantiating UI inputs using the initializeUI method.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)