Hi,
I just discover vaadin some weeks ago, and I need to made a drag/drop for files, I want to upload files (
https://demo.vaadin.com/sampler/#ui/data-input/other/upload
) but on a drop zone (
https://demo.vaadin.com/sampler/#ui/data-input/other/drop-items
)
So in order to make some ajustement, I made my own implementation of FileDropTarget :
public class FileDrag extends FileDropTarget {
public <T extends AbstractComponent> CracDrag(T target, final ProgressBar progress) {
super(target, new FileDropHandler<T>() {...});
}
}
But when I launch it, I get (on localhost:8080) and in console these errors :
2017-07-27 10:44:18.941:WARN:oejs.ServletHandler:qtp1871580398-42:
javax.servlet.ServletException: com.vaadin.server.ServiceException: java.lang.NoClassDefFoundError: com/vaadin/ui/dnd/FileDropTarget
Caused by:
com.vaadin.server.ServiceException: java.lang.NoClassDefFoundError: com/vaadin/ui/dnd/FileDropTarget
Caused by:
java.lang.NoClassDefFoundError: com/vaadin/ui/dnd/FileDropTarget
Caused by:
java.lang.ClassNotFoundException: com.vaadin.ui.dnd.FileDropTarget
I’m using Maven with these settings in pom.xml (as suggested as bottm of
https://vaadin.com/releases?version=prerelease/8.1/8.1.0/8.1.0.alpha8
), so i don’t know what to do because on FileDropTarget it’s written that’s available in 8.1.0.alpha8 pre-release and newer, but I think that’s the config I have, no ?
[code]
com.vaadin
vaadin-server
8.1.0.alpha8