Vaadin 7 on Grails 2.x
  • Introduction
  • Project setup
    • Command Line
    • IntelliJ IDEA
    • Eclipse
    • NetBeans
    • Plugin Configuration
    • Clean up
    • Best Practices
  • Database
    • GORM
      • Create Domain Model
      • Transactions
      • LazyInitializationException
      • Open Session In View I.
      • Open Session In View II.
      • Table Container
    • Groovy SQL
      • Create Sql
      • Execute SQLs
    • MyBatis
      • Configuration
      • Basics
    • JdbcTemplate
      • Create Beans
      • Usage
    • Clean Up With Alternatives
  • Architecture
    • Model View Presenter
  • Spring Autowiring
    • Create Simple Application
    • Application With Navigator
  • UI
    • Re-using GORM Validations
    • Async Push
    • Multiple application
    • SASS Compilation
    • Widgetset Compilation
  • Spring Security
    • Spring Security Dependency
    • Spring Security Basics
    • Secured Navigator
  • Localization
    • Localization Basics
    • Custom MessageSource
  • REST
    • Without using root URL
    • Using root URL for Vaadin app
  • Plugin development
    • Github
    • Development
Powered by GitBook
On this page
  • Step 1
  • Step 2
  • Step 3
  • Optional
  • Step 6
  • Step 7

Was this helpful?

  1. Project setup

Eclipse

PreviousIntelliJ IDEANextNetBeans

Last updated 5 years ago

Was this helpful?

Working example project, which results from this tutorial, can be downloaded from .

Spring provides great tool for development of Groovy and Grails based projects. If Eclipse is your development IDE, you should definetelly get GGTS.

We will show how to create a new Grails project with Vaadin using GGTS in this article.

Step 1

Search for Grails type of project in New Project wizard and click on Next.

Setup Grails

Step 2

Type a name of the project and click on Finish.

Step 3

Open file BuildConfig.groovy and add Vaadin plugin compile ":vaadin:7.6.1".

Run grails compile to reload dependencies. Click on Grail icon in GGTS and type there compile.

Then run grails vaadin-quickstart that will generate sample code to easier project configuration.

The command vaadin-quickstart will generate MyUI.groovy and remove URL mapping inside UrlMapping.groovy.

Optional

We have to disable Grails to take control over the URLs, so Vaadin can do it instead. Open UrlMappings.groovy file and make sure the URL mapping is empty, so the content of the file is the following.

Step 6

Click on Grail icon again and run run-app command.

Step 7

Setup Grails
Setup Grails

The latest version of the plugin is always available on

Setup Grails
Setup Grails
Setup Grails

Now your application is running on

Setup Grails
http://grails.org/plugin/vaadin
http://localhost:8080/my-app
github.com/vaadin-on-grails/quickstart-app
Groovy/Grails Tool Suite