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.

intellij widgetset compile setup

De Soca
1 decade ago Jan 14, 2011 3:52pm

Hello,

first let me say that I am new to Vaadin and very impressed. I only wish we had discovered Vaadin earlier.

I will like to know if there is any step by step approach or Intellij project template for the setup of Intellij for compiling widgetsets.

I have tried to use the ant script for Netbeans mentioned in other threads in this forum, however no success so far.
The furthest I have gotten is to compile without errors however the screen for the relevant component turns up blank.

Thank you.

Charles Anthony
1 decade ago Jan 17, 2011 9:31am
De Soca
1 decade ago Jan 17, 2011 4:34pm
Charles Anthony
1 decade ago Jan 18, 2011 2:25pm

Hello,

I've spent most of this morning trying to create a skeleton Vaadin/IntelliJ project. Up until today, I've been working with an old version of Intellij, which probably wouldn't be helpful to anyone else - so, as an exercise, I've downloaded a triall of IntelliJ Idea v10, and have used it to create a example Vaadin project, including an add-on (Jouni's Animator).

I've packaged the whole lot - including an ant file to generate the widgetset, the gwt jars, the vaadin jars, the web configuration.

It's a bit big, but it is (should be) a fully functioning Vaadin project in IntelliJ. It was too big to attach to the forum (25Mb) so I've created a BitBucket project and uploaded everything to there.(This should be a link to simple .zip download of everything) You should be able to open in IntelliJ Idea 10 and - assuming a configured Tomcat - just press run. It should compile the widgetset, include it in the web application and deploy it.

Essentially, I've changed the ant file to generate the widgetset to a subdirectory under the main "out" directory. I've changed the web "artifact" to call the ant file as a pre-processor, and to include the results in the exploded web directory.

The ant file has been tweaked since my last version so that you only have to specify the name of the widgetset. This is a classname, and should match the entry in web.xml

Artifacts in IntelliJ are new to me, although they look quite powerful - there's probably a better way to do what I've done.

HTH,

Cheers, Charles.

Last updated on Jan, 18th 2011
De Soca
1 decade ago Jan 19, 2011 12:40am
Alexander Orlov
1 decade ago Feb 15, 2011 12:34pm
A. M.
1 decade ago Apr 06, 2011 8:08pm
Charles Anthony
1 decade ago Apr 07, 2011 6:38am

Hi,

Themes should go in web/VAADIN/themes/your-theme-name

e.g. if you created a theme called "skeleton" :
a) call Application.setTheme - e.g.

public class SkeletonApplication extends Application {

  public void init() {
    setTheme("skeleton");
    ...
  }
}

b) Create a CSS file in web/VAADIN/themes/skeleton/styles.css

Cheers,

Charles.

Pedro Enrique
7 years ago Sep 05, 2015 12:50am