cuba-platform / documentation

CUBA Platform Documentation
https://www.cuba-platform.com
Creative Commons Attribution 4.0 International
26 stars 45 forks source link

Provide more details regarding Pluggable Component Factories usage for the Form component #634

Open glebfox opened 4 years ago

glebfox commented 4 years ago

Environment

Description of the bug or enhancement

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.

For example, see this topic: https://www.cuba-platform.com/discuss/t/component-generation-strategy-is-not-used/11229