Hello.
I’m trying to bind a CustomField with JPAContainer and a FieldGroup
AddressCustomField addressField = new AddressCustomField(person.getEntity().getAddress());
fieldGroup.bind(addressField, Person.Fields.address.name());
formLayout.addComponent(addressField);
....
public AddressCustomField(Address address){
fieldGroup = new BeanFieldGroup<Address>(Address.class);
fieldGroup.setItemDataSource(new BeanItem<Address>(address));
}
....
When I do fieldGroup.commit(), nothing happens.
What’s wrong?
Please tell us how to bind nested fields with a JPAContainer & FieldGroup