0

I'm dooing a Proof of Concept, evaluating Grails (2.1.0) with Vaadin 7 Plugin. We are evaluating different technologies and the common goal is to have a drag and drop tree set starting from a grails model, change the tree by dragging and drop a child and save the change in the database.

What I need is exactly this, nothing more, nothing less:

http://demo.vaadin.com/sampler#DragDropTreeSorting

Unfortunately when i copy and paste the example in a class (i work with IntelliJ 11.13) the IDE complains because it cannot find:

import com.vaadin.terminal.gwt.client.ui.dd.VerticalDropLocation;

Is this class excluded from the plugin or am i missing something? and if yes how do I reproduce the example?

thanks!

Fabio Sogni
  • 187
  • 1
  • 11

1 Answers1

0

The demo examples might be in Vaadin 6, but you project is using Vaadin 7 (I would say...). In Vaadin 7 many classes were refactored.

Here is Vaadin 6 VerticalDropLocation And here refactored VerticalDropLocation in Vaadin 7. You can see that they are in different packages... try to import the class from Vaadin 7:

com.vaadin.shared.ui.dd.VerticalDropLocation

Ondrej Kvasnovsky
  • 4,592
  • 3
  • 30
  • 40
  • ok that worked. In the ExampleUtil.java i also had to change the import for ThemeResource and Resource. Now I have a problem while starting the application (javax.servlet.ServletException: com.vaadin.server.ServiceException: app.DragDropTreeSortingExample does not implement UI) but i believe that from now on i should really read the documentation ;) thanks! – Fabio Sogni Feb 04 '13 at 14:34
  • if that helped, mark the question as answered. and report the other issue in separate question with all the needed details – Ondrej Kvasnovsky Feb 05 '13 at 19:48