Mapping

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 views navigator for this.

results matching ""

    No results matching ""