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.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Multiple widgetset declared in web.xml

Pether Sorling
1 decade ago Mar 17, 2010 2:39pm

Having some problem using two different widget sets at the same time, want todo something like


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

Marko Grönroos
1 decade ago Mar 17, 2010 4:00pm
Esa Niemi
6 years ago Jun 10, 2016 9:59am
Olli Tietäväinen
6 years ago Jun 10, 2016 10:32am
Varun Apparmurthy
6 years ago Jul 22, 2016 10:10am

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">
    <inherits name="com.vaadin.DefaultWidgetSet" />
    <inherits name="org.vaadin.hene.popupbutton.widgetset.PopupbuttonWidgetset" />
    <inherits name="de.akquinet.engineering.vaadin.javascriptplus.JavaScriptPlusForVaadin" />

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