Table: getValue() does only update after click-listener

Hi,

I have a table with a BeanItemContainer, so that items and itemIds are the same instance.

Whenever my ItemClickListener is called, event.getItemId() has the clicked value, but table.getValue() the previously selected item.

I find that confusing, and am wondering why this is implemented that way, or if this is a bug? (using Vaadin 6.6.2)

Hi,

the item click events are fired before the value change events, meaning that if you do a getValue() in your item click listener, it will still be the previous value. I’d say this is a feature, not a bug. Maybe you could use a value change listener instead?


Tepi