Select component inside a table

Hi all,
I have a Select component inside a table implementing Property.ValueChangeListener. The valueChange method is called every time a Select is changed in any row, but how can I get the table IID of the Select changed?
Thank you, Francesco

Hi!

Can’t come up with a clean way to do this, but you could use the setData(Object) and getData that AbstractComponent has to put in the extra info you need inside the select itself. The applicationData is not used by Vaadin so you can basically store anything you want there. This is more of a hack but it should work in your case.

To summarize, put select.setData(itemId) in the fieldFactory and retrieve it with select.getData() when you need it.