With GWT development and run-time classes now included in Vaadin, it is easy to move from Google’s build of GWT to Vaadin.
By switching to the GWT integrated in Vaadin 7, you immediately get
easier integration of SuperDevMode in your application. Many future GWT
bugfixes will be available in Vaadin before they get integrated to the
official version and more and more Vaadin widgets ready to use in your
application. You risk nothing and can easily switch back to stand-alone
GWT if you don’t use features from
You also have the option to easily move to a hybrid application development model integrating business logic on the server with custom components and other parts of your UI implemented using GWT. You can easily combine the productivity and security benefits of a server side framework with the flexibility of client side development where needed.
Google Plugin for Eclipse assumes the use of GWT SDK. Nevertheless, the plugin can easily be used to develop client side applications with Vaadin, by following the steps described below.
For lighter deployment, a minimal run-time version of Vaadin JAR will be available in the future.
You need to have the IvyDE plugin for Eclipse installed
Disable some error messages by setting Preferences… → Google → Errors/Warnings → Missing SDK → Ignore. Note that you may still get an error message about missing
gwt-servlet.jarwhen modifying project build path.
If you don’t already have a client side application project, you can create one with "New Web Application Project…", selecting any recent version of the GWT SDK. If you don’t have any version of GWT installed, download one here - the next steps will switch to using Vaadin JAR.
Open project properties, select Java Build Path → Libraries and remove the GWT SDK from the project class path
In the project properties, make sure the project JRE version in Project Facets is 1.6 or later
ivy-settings.xmlfrom an existing Vaadin project created with the Vaadin Plugin for Eclipse
Set the Vaadin version in
ivy.xmlto your preferred version
Add the following dependency in the
<dependency org="javax.servlet" name="jsp-api" rev="2.0" />
ivy.xmland select Add Ivy library… and click Finish
Right-click project, select Ivy → Resolve
That’s it - you are now ready to debug the application using GWT development mode server:
Debug as… → Web Application
To avoid the need to install and update browser plug-ins, use SuperDevMode.
Also the Maven plug-in for GWT makes some assumptions but it is easy to switch to the combined Vaadin JAR.
As the Vaadin JAR now includes GWT, Maven projects should not depend directly on GWT JARs (gwt-user, gwt-dev, gwt-servlet).
To convert an existing Maven project, perform the following modifications in your pom.xml
update compiler source and target Java version to 1.6
remove dependencies to GWT (
add dependencies to Vaadin
<!-- this replaces gwt-user.jar --> <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-client</artifactId> <version>7.0.0.beta9</version> <scope>provided</scope> </dependency> <!-- this replaces gwt-dev.jar --> <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-client-compiler</artifactId> <version>7.0.0.beta9</version> <scope>provided</scope> </dependency> <!-- optional - this replaces gwt-servlet.jar etc. and is deployed on the server --> <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-server</artifactId> <version>7.0.0.beta9</version> </dependency>
if not included e.g. via Jetty/Tomcat/other, add a "provided" dependency to the servlet API
<dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency>
com.vaadin:vaadin-maven-plugin, comment out
<dependencies>in its configuration (if exists) and use plug-in version that matches the Vaadin version
The vaadin-client, vaadin-client-compiler and their dependencies only need to be deployed on the server for debugging with SuperDevMode.