The widget set is either not compiled or installed properly. The
Using Add-ons in Netbeans which you mentioned has the basic instructions.
Some diagnostic steps:
Check that web.xml has the combining project widget set class in the “widgetset” parameter, such as “com.example.myapp.widgetset.MyAppWidgetSet”, depending on your project name.
Remove the widget set directories under VAADIN/widgetsets/ directory
Recompile the widget set with the build-widgetset.xml script
[list]
Check that all widget sets to be included are found from the class path
Check that the widget class that was missing is listed in the output with the other widgets included in the widget set
Check that there are no errors
Check that the .gwt.xml descriptor file of the combining project widget set contains lines for all the required widget sets (the file is automatically generated by the script)
[/list]
Check that the VAADIN/widgetsets/ directory contains the same widget set sub-directory
Check using Firebug (or equivalent) in the Net tab that the correct widgetset is actually loaded when you load the page and not some other
thank you for your answer.
I have some difficulties understanding what you have written:
You say remove the widget set under VAADIN/widgetsets/. My question is:
Where can I find the VAADIN directory? There seem to be differences between eclipse and netbeans. Here’s a screenshot of my Netbeans project:
Is it usually necessary to recompile add-ons or are they usually ready to download & plug them into your application? I do not have any difficulties with server-side-only add-ons such as data containers but this is the first time I am using a client-side add-on.
I am not using NetBeans, but it should probably come under “Web Pages”, in parallel with WEB-INF. If you have never compiled a widgetset in the project nor created your own theme, there probably isn’t such a directory yet.
Yes, it is necessary to recompile the client side javascript (widgetset) when you take new client-side widgets into use. There are numerous old threads about this on the forum, and
the book also provides information about widgetsets and compiling them.
If you are using build-widgetset.xml file (as mentioned
Vaadin AddOns with NetBeans ) then check value of property client-side-destination. This property defines where /VAADIN folder will be created and the widgetset will be compiled.