在你的xxx.gwt.xml文件中添加如下内容
<inherits name="javax.validation.Validation"/>
添加一下包validation-api-1.0.0.GA.jar and validation-api-1.0.0.GA-sources.jar
-
copy your validation-api-1.0.0.GA.jar and validation-api-1.0.0.GA-sources.jar into the gwt-dependencies directory.
-
remove all VAADIN_DOWNLOAD variables from your classpath.
-
Add the following variables to the project's build path with the following entries: gwt-dev.jar, gwt-user.jar,validation-api-1.0.0.GA.jar AND validation-api-1.0.0.GA-sources.jar.
-
Compile widgetset
- Enjoy life