Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 3 weeks ago
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:
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);
This wasn't happened before :(
Any help will be appreciated :).
Last updated on
Dou you have setter for partnerType property in your Partner dto?
Last updated on
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.
Last updated on
You cannot reply to this thread.