I was wondering if it’s possible to use out of the box GWT widgets with Vaadin? The motivation isn’t so much to actually use the widgets, as to be able to use external libraries that do use them (in my case, gwt-voices). For instance, if I try something like:
com.google.gwt.user.client.ui.Widget w = new Button();
I get a NoClassDefFoundError at runtime for com/google/gwt/user/client/ui/Button. I’ve tried placing gwt-user.jar into the WEB-INF/lib folder, and tried creating a new widgetset and recompiling, and neither seemed to solve the problem.
you cannot just drop an existing gwt widget, you’ll need make a couple of adjustments into it, provide a server side for the widget and register widget in your custom widgetset. However, typically, those adjustments are quite small and fast to implement (unless you’re trying to reuse some heavy widget with a lot of business methods and options/settings in it)
Please take a look at Book of Vaading and samples - they show how to create your own widgetset. There is also several projects in incubator which also adopt external gwt widgets and are good places to look.