I’ve added the maven dependency and repository in my pom.xml file as suggested on the link attached, Maven did download my dependency jar file and it is in the WEB-INF/lib directory.
However, when I try to load the page with the add-on I get the following error message (in browser):
Widgetset does not contain implementation for com.vaadin.addon.calendar.ui.Calendar. Check its @ClientWidget mapping, widgetsets GWT module description file and re-compile your widgetset. In case you have downloaded a vaadin add-on package, you might want to refer to add-on instructions.
I tried to install the Vaadin-plugin in Eclipse. It says on their website that when the vaadin plugin detects a widgetset in the path, it is automatically compiled. I’ve also tried to follow the tutorial ( http://vaadin.com/directory/help/using-vaadin-add-ons )for using vaadin addons, but still no luck…
Did you run into similar problems? What should I do? Do I need to compile some sort of a widget set?
ome useful tips regarding this issue, please?
Yes, when introducing a new add-on to your project, you need to recompile the widgetset. You can either do it using the Eclipse plugin or a maven plugin.
The error “Failed to load the widgetset” indicates, that your project is configured to use a custom widgetset, but the browser is unable to find it. There might be multiple reasons for this, either the compilation hasn’t succeeded and hence the widgetset doesn’t exist - or as it very often happens, there is a deployment issue and the widgetset has not been deployed to the server. You could simply try to refresh your project and make sure everything is published to the server.
Here’s the maven plugins you’ll need for compiling the widgetset
<pluginRepositories>
<pluginRepository>
<id>vaadin-snapshots</id>
<url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<!-- As we are doing "inplace" GWT compilation, ensure the widgetset -->
<!-- directory is cleaned properly -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<filesets>
<fileset>
<directory>src/main/webapp/VAADIN/widgetsets</directory>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>${vaadin.plugin.version}</version>
<configuration>
<extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
<!-- <runTarget>mobilemail</runTarget> -->
<!-- We are doing "inplace" but into subdir VAADIN/widgetsets. This
way compatible with Vaadin eclipse plugin. -->
<webappDirectory>${basedir}/src/main/webapp/VAADIN/widgetsets
</webappDirectory>
<hostedWebapp>${basedir}/src/main/webapp/VAADIN/widgetsets
</hostedWebapp>
<noServer>true</noServer>
<!-- Remove draftCompile when project is ready -->
<draftCompile>false</draftCompile>
<compileReport>true</compileReport>
<style>OBF</style>
<strict>true</strict>
<runTarget>http://localhost:8080/</runTarget>
</configuration>
<executions>
<execution>
<configuration>
<!-- if you don't specify any modules, the plugin will find them -->
<!-- <modules> <module>com.vaadin.demo.mobilemail.gwt.ColorPickerWidgetSet</module>
</modules> -->
</configuration>
<goals>
<goal>clean</goal>
<goal>resources</goal>
<goal>update-theme</goal>
<goal>update-widgetset</goal>
<goal>compile-theme</goal>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>