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