Another issue with Drag/Drop

Hi,

I have been having issue with drag/drop of a component across Vaadin sub-window. I have one window which displays set of draggable components. I have many other windows which have droppable layout. I could not make it work.

Can anyone please explain me? What am I doing wrong here?

  1. Window with draggable components


        Window win = new Window("Draggable");
        win.setHeight("300px");
        win.setWidth("500px");
        DragAndDropWrapper wrapper = new DragAndDropWrapper(new Button("Button1"));
        wrapper.setDragStartMode(DragStartMode.WRAPPER);
        win.addComponent(wrapper);
        
        wrapper = new DragAndDropWrapper(new Button("Button2"));
        wrapper.setDragStartMode(DragStartMode.WRAPPER);
        win.addComponent(wrapper);

        wrapper = new DragAndDropWrapper(new Button("Button3"));
        wrapper.setDragStartMode(DragStartMode.WRAPPER);
        win.addComponent(wrapper);

  1. Window with droppable layout


        Window win = new Window("Droppable");
        win.setHeight("300px");
        win.setWidth("500px");
        VerticalLayout layout = new VerticalLayout();
        DropHandler dropHandler = new DropHandler() {
            
            public AcceptCriterion getAcceptCriterion() {
                return AcceptAll.get();
            }
            
            public void drop(DragAndDropEvent event) {
                System.out.println("Dropped"); // This is not getting called
            }
        };
        
        DragAndDropWrapper wrapper = new DragAndDropWrapper(layout);
        wrapper.setHeight("400px");
        wrapper.setWidth("300px");
        wrapper.setDropHandler(dropHandler);
        
        win.addComponent(wrapper);

Thanks

I am sorry for the post. It started working. Probably, I did not publish changes to Application Server.

Thanks