Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Multiple widgetset declared in web.xml
Having some problem using two different widget sets at the same time, want todo something like
---
<init-param>
<param-name>widgetset</param-name>
<param-value>com.vaadin.addon.timeline.gwt.TimelineWidgetSet</param-value>
</init-param>
<init-param>
<param-name>widgetset</param-name>
<param-value>org.vaadin.vaadinvisualizations.widgetset.VaadinvisualizationApplicationWidgetset</param-value>
</init-param>
---
Like Vaadinvisualization more allround, but the timeline widget are not dependent on flash.
Can I get vaadin to use two widget sets ?
Any workaround or direction towards better solution would make me happy :)
All the best, Pether
You can't define that in web.xml. An application can only have one widget set. You need to define a combining widget set that inherits the two different widget sets, and use that in your application.
See 10.5. Defining a Widget Set for more details. You just need a GWT Module Descriptor (.gwt.xml) that contains inherits elements for the two widget sets to combine. Then you need to compile the widget set. If you're using the Eclipse Plugin, just click the Compile Widgetset button; if not, you need to make a build script to compile it. See the Book for more details.
Marko Grönroos: You can't define that in web.xml. An application can only have one widget set. You need to define a combining widget set that inherits the two different widget sets, and use that in your application.
See 10.5. Defining a Widget Set for more details. You just need a GWT Module Descriptor (.gwt.xml) that contains inherits elements for the two widget sets to combine. Then you need to compile the widget set. If you're using the Eclipse Plugin, just click the Compile Widgetset button; if not, you need to make a build script to compile it. See the Book for more details.
The link is dead. Similar article for Vaadin 6 is here
Here's the same page in the current Vaadin 7 docs (not that much has changed): https://vaadin.com/docs/-/part/framework/clientside/clientside-module.html
1. VAADIN supports only 1 widgetset
2. If your application needs more widgetsets, open the file YourProjectWidgetsetName.gwt.xml and add as below
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd">
<module>
<inherits name="com.vaadin.DefaultWidgetSet" />
<inherits name="org.vaadin.hene.popupbutton.widgetset.PopupbuttonWidgetset" />
<inherits name="de.akquinet.engineering.vaadin.javascriptplus.JavaScriptPlusForVaadin" />
</module>
3. NOTE:
i) org.vaadin.hene.popupbutton.widgetset.PopupbuttonWidgetset--> automatically falls in this above file if you use Eclipse widgetset compile option
Reason: The widgetset is not available in ADDON JAR file. So this gets generated along with your project
ii) de.akquinet.engineering.vaadin.javascriptplus.JavaScriptPlusForVaadin --> Does not generate automatically. You need to manually enter the details
Reason: The widgetset is already available in the ADDON JAR file. So you need to add it manually. Else you will not be able to find out the reason
4. Please use this if logic if you need to add multiple custom widgetset in your project