I have a table with a generated column. I would like the generated component in that column to change based on the selection. At the moment I can’t seem to do this in a Property.ValueChangeListener on the table.
Specifically, I have a button in the generated column in each row. I’d like the button to be enabled only on the selected row. How would I accomplish this? I tried making the ColumnGenerator conditionally enable the button based off the table’s current selection value, but the ColumnGenerator doesn’t seem to be invoked on a selection change.
I would suggest to save your buttons (which you create in the column-generator) in a hashmap with key = item of that row in the table. Then, in your listener to selection-changes on the table, you can use this hashmap to disable the buttons…