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.
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
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.