Compile And Use Vaadin 6 Addons (1)
I’m working on an admin application and using Vaadin 6. I started this project one year ago and still working. I won’t say the project name becouse this is secret of my company. But I will tell a problem this is how to use vaadin 6 addons.
I imagine you’re using Eclipse (Kepler), Java (1.6 or above), Maven (2 or 3). I’m working in Ubuntu but this doesn’t matter. These solution will work on Windows and Mac systems (I hope).
The story is that, in our application we must draw some charts. I searched the directory and found the needed addon. Added the maven dependencies to my project of course and then run it. But it didn’t work becouse there isn’t javascript, css, html files for addon.
We can use java library for invient chart of course but there is other side this is browser. We must compile the addon with GWT compiler and join it compiled code to Vaadin’s default widgetset and use it. The important information is that every vaadin application can use only one widgetset. For this we must join our compiled addon(s) to default widgetset.
I will tell you how can you compile the widgetset and how can you use it. As first you have to install the GWT plugin to Eclipse. For this please go to here and add the update site to eclipse. I’m using Kepler and the update site is this: https://dl.google.com/eclipse/plugin/4.3
And then click OK and select this update site in combobox. Just wait a minute for loading and check these things:
And click to NEXT and accept the licences and install the plugins. After installing restart the eclipse and the “Compile Widgetset” button should come to toolbar:
Everything is ok for here. Next step is in next post.
0 yorum