mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-01 02:38:21 +08:00
PL-7455 Support generator method apart from addCustomField() for FieldGroup
This commit is contained in:
parent
031a9e5f8e
commit
f1a36062b8
@ -512,11 +512,13 @@ public class FieldGroupLoader extends AbstractComponentLoader<FieldGroup> {
|
||||
}
|
||||
|
||||
for (FieldGroup.FieldConfig field : resultComponent.getFields()) {
|
||||
String generator = field.getXmlDescriptor().attributeValue("generator");
|
||||
if (generator != null) {
|
||||
context.addPostWrapTask((boundContext, window) ->
|
||||
resultComponent.addCustomField(field, new DeclarativeFieldGenerator(resultComponent, generator))
|
||||
);
|
||||
if (field.getXmlDescriptor() != null) {
|
||||
String generator = field.getXmlDescriptor().attributeValue("generator");
|
||||
if (generator != null) {
|
||||
context.addPostWrapTask((boundContext, window) ->
|
||||
resultComponent.addCustomField(field, new DeclarativeFieldGenerator(resultComponent, generator))
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user