Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
3.7.2.Final
-
None
Description
When creating a Command, you can specify the attributes of a UI field by using @WithAttributes and @Inject:
@Inject @WithAttributes(label = "Version") private UIInput<String> version;
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.