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 5

Was this helpful?

  1. Project setup

NetBeans

PreviousEclipseNextPlugin Configuration

Last updated 5 years ago

Was this helpful?

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

You need to install full version of (where Groovy is included).

Then you need to install for NetBeans. Search for grails and mark Groovy and Grails plugin as selected.

Click on Install button and finish the instalation which will require restart Netbeans IDE.

Install Grails plugin

Step 1

Open New Project window to create Grails application. Select Grails Application and click on Next.

Step 2

Type name of the project and finish the wizard.

Also configure Grails version that will be used for your project.

Step 3

Open BuildConfig.groovy and add dependency to vaadin plugin compile ":vaadin:7.6.1".

Open commands window in Netbeans.

Run grails compile command. It will download Vaadin plugin together with all mandatory dependencies.

Then click on Refresh Commands button and 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 want to prevent Grails to take over URL mapping. Open UrlMappings.groovy and make sure the URL mapping is empty.

class UrlMappings {
    static mappings = {
    }
}

Step 5

We are ready to start up the application. Run grails run-app command.

Install Grails plugin
Install Grails plugin
Install Grails plugin

The latest version of the plugin is always available on

Add dependency
Open commands window
Add dependency
Add dependency
run-app target

Vaadin application running on will become accessible after a while.

Running Vaadin application
http://grails.org/plugin/vaadin
http://localhost:8080/my-app
github.com/vaadin-on-grails/quickstart-app
NetBeans
Grails plugin