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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Cannot create an editable form
Hi,
I have a Table populated by a BeanItemContainer on which a click listener is implemented. When the user clicks on a row in the table, a window pops up that contains a form populated with the row selected by the user. I'm trying to make this form editable so that any changes made by the user show up in the table.
I am able to display the form with values from the row selected by the user. However, the form is always read only. I have a FormFieldFactory where I create TextFields with readOnly set to false. I have also used setReadOnly(false) when the form is created but it does not work. How should I make the form editable?
Got this to work. Problem lay with the line:
myForm.setItemDataSource(editableItem);
Replaced it with
myForm.setItemDataSource(new BeanItem(editableItem));