(Quick Reference)
generate-vaadin-app
Purpose
Sets up an application for use with Vaadin.
Examples
grails generate-vaadin-app
grails generate-vaadin-app org.bookstore.MyApp
Description
This installs the necessary files and applies configuration changes to your application,
to make it ready for Vaadin. Specifically it does the following:
- Create Application Class
- A Vaadin Application will be created with the specified name, in
grails-app/vaadin
- Update VaadinConfig
- The
applicationClass
setting in grails-app/conf/VaadinConfig.groovy
will be changed to the new name.
- Install Theme
- The grails theme for Vaadin will be installed in
web-app/VAADIN/themes/main
- Install Base Views
- The Vaadin home page view and layout template will be installed to
grails-app/views/vaadin
- Update BuildConfig
- The Vaadin Addons repository needs to be added to the project's repositories list. Note the plugin depends on
customfield
and easyuploads
addons. The Vaadin Addons repository is http://maven.vaadin.com/vaadin-addons
You cannot use the name VaadinApplication
for your application - please choose another name!