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.

WidgetSet in Vaadin 7 project

Andrei Țăranu
6 years ago Dec 20, 2015 9:54am
Teppo Kurki
6 years ago Dec 21, 2015 7:58am

Hi,

you didn't mention if you compiled the widgetset at all. That needs to be done every time you add an add-on which has client side code, or modify possible client-side code in your project.

If you have the Vaadin plugin for eclipse installed, find an icon with two gears in it from the Eclipse toolbar. Click the arrow next to it and select Compile widgetset.

-tepi

Aziz Rehman
6 years ago Dec 21, 2015 8:41am
Teppo Kurki
6 years ago Dec 21, 2015 9:46am

Yes, definitely. However if using the Vaadin plugin it will automatically look for relevant add-on packages in the classpath and add entries for those into the widgetset definition file.

-tepi

Andrei Țăranu
6 years ago Dec 21, 2015 1:40pm
Teppo Kurki
6 years ago Dec 21, 2015 1:47pm

Hi,

for the first issue (error in browser) try cleaning your server, e.g. Tomcat from Eclipse -> right-click it in the Servers view and select "Clean...".

For the second issue, I've never actually seen that one happen. Can you check your project files to see if there actually are multiple files names *.gwt.xml in there?

-tepi

Aziz Rehman
6 years ago Dec 21, 2015 2:13pm

The eclipse error appears, when you try to compile a widgetset of a project which includes other then its own *.gwt.xml file. this is apparently the case here since you are using an addon. Are you using addon with java source files?
A possible solution would be to select your  own YOURPROJECTNAMEWIDGETSET.gwt.xml  and click the compile widgetset button in eclipse.

Andrei Țăranu
6 years ago Dec 21, 2015 3:42pm