How to set a Table Row always being selected


I implemented a double-click listener for a table. it works but there’s a problem.
The table row can be off selected, so when double-click event is fired, the row is off-selected.
For this I thought the row needs not to be off-selected. Is it right?
If so or not, could you give me some advice?


with setNullSelectionAllowed(false) there should always be an item selected

You could also attach a valueChangeListener and re-select the row with You probably see it unselect and then select. Remember to call setImmediate(true) on the table


Thank you for your advice. It’s good.

Happy New Year.