Insert a filled bean into a Field Group (Form)

Hi, I can create a FieldGroup and bind it to my bean in Create Mode using that:


BeanItem<T> item = new BeanItem<T>((T) bean);
FieldGroup form = new FieldGroup(item);
form.setBuffered(true);

But in Edit Mode, when I have a filled bean I do and bind that but the data doesn’t appear in the form:


FieldGroupLayout<T> formLayout = getDetailForm(); my current form

BeanItem<T> item = new BeanItem<T>((T) bean);
FieldGroup form = new FieldGroup(item);
form.setBuffered(true);

formLayout.setForm(form); replacing my current form with filled bean
formLayout.bindMemberFields();