Since 7.1, the Form component supports generic <field> element (similar to FieldGroup) that is transformed into an appropriate visual component on the basis of the corresponding entity attribute and existing component generation strategies.
The Pluggable Component Factories documentation provides an example of how to replace the default Form field generation for a certain attribute of a specific entity, but it's unclear that a factory is applicable only for the field elements.
Environment
Description of the bug or enhancement
Since 7.1, the
Form
component supports generic<field>
element (similar toFieldGroup
) that is transformed into an appropriate visual component on the basis of the corresponding entity attribute and existing component generation strategies.The Pluggable Component Factories documentation provides an example of how to replace the default Form field generation for a certain attribute of a specific entity, but it's unclear that a factory is applicable only for the
field
elements.For example, see this topic: https://www.cuba-platform.com/discuss/t/component-generation-strategy-is-not-used/11229