Capture Input from an editable table column

I have created a table with a collection type data source and it has two columns Name and Age

The Age column is editable but when the user inputs a value it is not saved in the database.
How can i capture the input of a user such that i can store them to an int list when the OK button is clicked so i can access them later


Hello @mabutabee

I would suggest you to create this column as generated column and subscribe for ValueChangeEvent.

Also you can build a map that will contain pairs (Entity -> ValueChangeListener) to be able to check which entity was modified.

Moreover, you can set a datasource for text fields with the Table#getItemDatasource method, that returns the datasource which contains the provided item.