Loading...
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
TUTORIAL

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

What is @Widgetset ?

Jason Caldwell
6 years ago Feb 16, 2016 9:44pm
Johannes Häyry
6 years ago Feb 17, 2016 8:07am

The Vaadin components displayed and the engine communicating with the server on the web browser are implemented with Google Web Toolkit (GWT). The Vaadin browser engine is basically Java code compiled into a huge javascript lump called a Widgetset.

The annotation tells Vaadin UI what widgetset to use - in this case a custom widgetset called MyAppWidgetset. The widgetset needs to be compiled at least once and everytime you update Vaadin version or you add a Vaadin add-on from Vaadin Directory. If you remove the annotation, a default widgetset is used from vaadin-client-compiled.jar.

Jason Caldwell
6 years ago Feb 17, 2016 8:45am
Johannes Häyry
6 years ago Feb 17, 2016 8:58am
Jason Caldwell
6 years ago Feb 20, 2016 12:21am
Johannes Häyry
6 years ago Feb 20, 2016 6:58am

Most of the time you need only one UI class. If you need multiple UI classes, each UI can use the same Widgetset