Multiple application
Example code is available on github.com/vaadin-on-grails/multiple-ui-application.
In grails-app/conf/VaadinConfig.groovy
, we can configure URL mapping to Vaadin UI classes. We can define multiple UIs to be accessible from one Grails application.
In this article we will create two new UIs that we will show under different URLs.
Step 1
ClientUI
will be available on http://localhost:8080/client.
And AdminUI
that will be mapped to http://localhost:8080/server
Step 2
Open VaadinConfig.groovy
and change the mapping, so the mapping points to the new UIs.
Now we can start up the application and access both URLs to see each is mapped to different UI class.
Last updated