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.
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.