Field group with customComponent

Hi everyone.

I’m working with fieldgroups and everything seems to work fine, but now i have a problem. I have a custom component inside a form wich has a textField, DateField etc… how could i set values with the method bindMemberFields with components which are not directly in the main form.


formA has:
textField tf
ComboBox cb
MyCustomComponent mcc (has textbox, datefield)

FieldGroup binder = new FieldGroup();
BeanItem item = new BeanItem(myDTO);

Should i put the propertyId annotation on MyCustomComponent mcc, or on each specific component inside the customComponent

I would guess that adding the annotation on each field inside your customcomponent should work. Haven’t tried it, though.