Fields are not getting updated when the BeanFieldGroup is updated

I have done the binding of a Form to a bean as documented. However, I see that the fields in the form are not getting updated.

Relavant code follows:

[code]
@PropertyId(“patient”)
private CheckBox patient;

private BeanFieldGroup binder = null;
binder = new BeanFieldGroup(SenscioUserForm.class);
binder.bindMemberFields(this);
binder.setItemDataSource(bean);

BeanItem item =binder.getItemDataSource();

item.getItemProperty(“patient”).setValue(acc.getRole().isPatient());
System.out.println(binder.getField(“patient”).getPropertyDataSource().getType() + ": " +binder.getField(“patient”).getPropertyDataSource().toString());
[/code]I can see from the printout that both the value of the bean and the Field are changed and reflect the values they are supposed to have. However, the Field in the form is not updated.
For Eg.
Output of line 9 is
class java.lang.Boolean: true

But the checkbox on the form is not updated to be checked.

Obviously the binding was successful but the form was not updated. Wonder if I am missing any step. Setting the
binder.setBuffered(false) results in some exception and I have not seen any example that specifically does that.

Try this:
BeanItem beanItem = new BeanItem(bean);
FieldGroup binder = new FieldGroup(beanItem);
binder.bindMemberFields(this);