Vaadin 8 on Grails 3
  • Introduction
  • Project setup
    • Environment setup
      • Unix based systems
      • Windows
    • Creating Project
      • Command line
      • IntelliJ IDEA
    • Plugin Configuration
      • UI class
      • URL mapping
      • Production mode
      • Async support
      • Themes
      • SASS compilation
      • Widgetset compilation
      • Servlet class
      • Spring component scan
      • UI provider
      • Open session in view
    • 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 Bean
      • Execute SQLs
    • MyBatis
      • MyBatis Configuration
      • Reading Data with MyBatis
    • JdbcTemplate
      • Create JdbcTemplate Beans
      • Using JdbcTemplate
    • Clean Up When Using Alternatives
  • UI
Powered by GitBook
On this page

Was this helpful?

  1. Project setup
  2. Plugin Configuration

URL mapping

PreviousUI classNextProduction mode

Last updated 5 years ago

Was this helpful?

We can provide multiple Vaadin UI classes that extends com.vaadin.ui.UI and they will be mapped to specified URL patterns. There must be at least one UI class.

Let's look at this example where we map three URL paters, each to separate UI class.

    mapping = [
        "/*": "app.MyUI",
        "/admin/*": "app.AdminUI",
        "/client/*": "app.ClientUI"
    ]

The application UIs will then become available at:

Be aware, creating multiple UIs is not the way how to navigate in the Vaadin applicatin. Use for this.

http://localhost:8080/grails-vaadin7-demo
http://localhost:8080/grails-vaadin7-demo/client
http://localhost:8080/grails-vaadin7-demo/admin
views navigator