Your classes look right, but nothing is missing: the GWT module descriptor file. Add this file to the com.vaadin.sample.gwt package, and here I call it MyWidgetset.gwt.xml. The contents of the file should look like this if you do not have add-ins in your project:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd"> <module> <inherits name="com.vaadin.terminal.gwt.DefaultWidgetSet" /> </module>
And then you need to define in web.xml that you want to use this widget:
<init-param> <description>Application widgetset</description> <param-name>widgetset</param-name> <param-value>com.vaadin.sample.gwt.MyWidgetset</param-value> </init-param>
After these steps, GWT compilation should work.
source share