Cannot create an editable form


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:


Replaced it with

myForm.setItemDataSource(new BeanItem(editableItem));