Vaadin Designer and BeanFieldGroup.bindMemberFields() with nested propertie

Hi,

I am trying to use BeanFieldGroup.bindMemberFields() with a form created with the Vaadin Designer.
My first problem was that the form fields were not found because I had to extend the generated designer form class.
FieldGroup.getFieldsInDeclareOrder() uses Class.getDeclaredFields() which ignores inherited fields.
I solved it by creating a new instance of the generated form class and passing it as argument.
My problem is now that the fields are skipped because they do not have @PropertyId annotations.

According to https://vaadin.com/forum#!/thread/2518221 I have to call bindMemberFields() before setItemDataSource().
But BeanFieldGroup.findPropertyId() also uses the datasource. So I try to set the dataSource first.
I used BeanItem.addNestedProperty(“contact.firstName”) but BeanFieldGroup.findPropertyId() calls getItemProperty(“firstName”).
In Designer I can’t name the field content.firstName. How can I set @PropertyId annotations in Designer?

Thanks,
Roland

See the answer Petri gives in this thread
https://vaadin.com/forum/#!/thread/10025166/10025165