FieldGroup is always binding a readonly ComboBox

Hello guys,

I’m using vaadin version 7.5.10. Now a ComboBox which is bound with a FieldGroup is always read-only. I cant make it not read-only by explicitly setting ComboBox.setReadOnly(false).

Simple code snippet:
[code]
FieldGroup f = new FieldGroup(partnerItem);

ComboBox cb = new ComboBox();
f.bind(cb, “partnerType”);

Window w = new Window(“For check”);
w.setHeight(“300px”);
w.setWidth(“300px”);
w.setContent(cb);
cb.setReadOnly(false);

UI.getCurrent().addWindow(w);
[/code]This wasn’t happened before :frowning:
Any help will be appreciated :).

Dou you have setter for
partnerType
property in your
Partner
dto?

Yes I’ve. But the dataType of the value wasn’t same;

Before change:

public void setPartnerType(int partnerType) {
      this.partnerType = partnerType;
}

After change : public void setPartnerType(Integer partnerType) { this.partnerType = partnerType; } Where partnerType is Integer. Btw after the change its work.
Thanks a lot.