difference between itemclicklistener and ValueChangeListener ?

Hi,

In the Vaadin tutorial (http://vaadin.com/tutorial) a ValueChangeListener is added to the contactlist Table for detecting when an item is clicked. Why can we not use an ItemClickListener here ? Going by the listener names alone that would make a lot more sense, because the item is clicked and does not change value.

So i changed the sample and added an ItemClickListener, but it seems that it is not reliable and does not always get fired when the table is clicked.

The javadoc doesn’t reveal much more info, can someone explain a bit more the difference between these 2 listeners and their recommended usage ?

Thanks !
Jorg

The examples are a bit confusing. If you want to get note, when an item is clicked and not only selected, use the ItemClickListener. The ValueChangeListener is fired every time, the selection changes - unselections too.

I always have checked double double clicks, where I have not seen this behavior.