Important Notice - Forums is archived
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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
How to set a Table Row always being selected
Hi
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?
thanks
with setNullSelectionAllowed(false) there should always be an item selected
You could also attach a valueChangeListener and re-select the row with table.select(bean). You probably see it unselect and then select. Remember to call setImmediate(true) on the table
Hi
Thank you for your advice. It's good.
Happy New Year.