(Quick Reference)

4 Configuration - Reference Documentation

Authors: Ondrej Kvasnovsky, Francis McKenzie

Version: 1.6.2.2-SNAPSHOT

4 Configuration

The plugin is configured using the grails-app/conf/VaadinConfig.groovy configuration file. A default configuration file is automatically created in your application when the Vaadin plugin is first installed. The available settings are as follows:

VaadinConfig

ParameterDescription
applicationClassThe name of the app's main Vaadin Application class.
servletClassThe name of the app's main Vaadin ApplicationServlet class.
autowireSet how spring dependencies should be referenced. Either byName or byType.
contextRelativePathThe root path of the Vaadin application. Note that this is appended to the Grails applications's grails.app.context path. If set as '/' then Vaadin will handle all requests, bypassing Grails.
googleAppEngineModeSet to true if the app is to be deployed on Google App Engine.
javascriptLibrariesSpecify a list of paths to Javascript files, to be included within the HTML <head>.
systemMessagesA closure that contains settings to apply to Application.SystemMessages. For example, set the sessionExpiredNotificationEnabled to false to automatically start a new session if the old one has expired.

Other Configuration

Note that the Vaadin plugin depends on two external Vaadin addons. Therefore the Vaadin addons Maven repository needs to be included in the repositories closure in your app's grails-app/conf/BuildConfig.groovy. This is automatically added by command generate-vaadin-app.

The Vaadin addons Maven repository is http://maven.vaadin.com/vaadin-addons