Compile And Use Vaadin 6 Addons (1)

Emir Buğra KÖKSALAN tarafından tarihinde yayınlandı

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

Add update site to Eclipse

And then click OK and select this update site in combobox. Just wait a minute for loading and check these things:

select google sdk

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:

compile widgetset toolbar

Everything is ok for here. Next step is in next post.


Emir Buğra KÖKSALAN

Java & PHP Developer

0 yorum

Bir yanıt yazın

Avatar placeholder

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

Time limit is exhausted. Please reload the CAPTCHA.

Bu site, istenmeyenleri azaltmak için Akismet kullanıyor. Yorum verilerinizin nasıl işlendiği hakkında daha fazla bilgi edinin.