Book of Vaadin need Update! Be serious!

If a write the code like this example for vaadin 7.1.5 its does not compile for the listener
But this one yes, after a bit headache.

table.addValueChangeListener(new ValueChangeListener() {
         public void valueChange( event) {
            // TODO Auto-generated method stub

Some of the examples used the deprecated addListener() method, but it should work nevertheless…

Or what was the problem? Or did you have problem with the ValueChangeEvent class name? You of course need to import the Property.ValueChangeEvent in the Vaadin library. I think there’s a ValueChangeEvent class in many other libraries as well, so maybe you first imported a wrong one and then got stuck with it? Just remove the wrong import and press Ctrl+Shift+O in Eclipse to import the correct one.

Anyhow, I fixed the remaining addListener() methods in the book examples to use the correct listener add method, so there should be less trouble now.

Thank you very much Marko!