Table: Generated CheckBox Column prohibits row selection

Hi there,

when using a CheckBox as the component returned by a ColumnGenerator, the table rows are not selectable any more.

This is my ColumnGenerator:


public class BooleanColGenerator implements ColumnGenerator {
	@Override
	public Component generateCell(final Table source, final Object itemId, final Object columnId) {
		final CheckBox checkBox = new CheckBox();
		checkBox.setValue(source.getItem(itemId).getItemProperty(columnId).getValue());
		return checkBox;
	}
}

In the resulting Tables, the boolean Columns are perfectly rendered with CheckBoxes. But when I try to select a table row by clicking into the checkbox column (but not onto the checkbox), the row does not get selected (see attachment).

Is there anything I can do about this?
11793.png

This same issue is discussed
here
and on the threads linked from there. There’s no final solution on offer yet, but I hope you’ll get an idea how to proceed.

Thanks Anna. I’ll see whether that’ll help!

Sascha