Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
FieldGroup.bindMemberFields() does not create fields
Hi,
In Vaadin 6 I was using this to populate a form with fields from a pojo using a FieldFactory:
UserFieldFactory formFieldFactory = new UserFieldFactory();
form.setFormFieldFactory(formFieldFactory);
form.setLayout(new VerticalLayout());
item = new BeanItem<Object>(pojo);
form.setItemDataSource(item, Arrays.asList(new String { "type", "sender", "personal", "bcc", "subject", "template" }));
// setItemDataSource called the factory 6 times and the fields were added to the form
Now I am using:
item = new BeanItem<Object>(pojo);
fieldGroup = new FieldGroup(item);
FieldGroupFieldFactory formFieldFactory = new UserFieldFactory();
fieldGroup.setFieldFactory(formFieldFactory);
fieldGroup.buildAndBindMemberFields(formLayout);
and buildAndBindMemberFields does not call the factory at all. Why not?
Thanks,
Roland