Can't make ContextMenu addon work

Hi, I’m trying to make the com.vaadin.contextmenu.ContextMenu addon work with not result.

ivy.xml:

<dependency org="com.vaadin" name="vaadin-context-menu" rev="2.0.0" />

With this code:

menu = new ContextMenu(table, true);

I get this error:

java.lang.NoSuchMethodError: com.vaadin.event.ContextClickEvent$ContextClickNotifier.addContextClickListener(Lcom/vaadin/event/ContextClickEvent$ContextClickListener;)Lcom/vaadin/shared/Registration;
    at com.vaadin.contextmenu.ContextMenu.setAsContextMenuOf(ContextMenu.java:70)
    at com.vaadin.contextmenu.ContextMenu.<init>(ContextMenu.java:58)

Any ideas?

Hi,

are you using Vaadin 7? 2.0.0 is only compatible with Vaadin 8.

-Olli

Hi, I solved with version 0.7.5

Thank you very much.

You’re welcome!

-Olli