There is a Grails plugin available that allows Vaadin applications to be run on Grails. See the plugin page for more details. You can also report bugs and add feature requests at the plugin's JIRA page at Codehaus.
grails create-app hello-vaadin cd hello-vaadin grails install-plugin vaadin
"/"(view:"/index")
package com.mycompany
import com.vaadin.*
import com.vaadin.ui.*
class HelloVaadinApplication extends Application {
void init(){
def window = new Window("Hello Vaadin!")
setMainWindow window
def button = new Button("Click Meee")
window.addComponent button
}
}
vaadin {
productionMode = false
applicationClass = "com.mycompany.HelloVaadinApplication"
}
grails run-app
Then browse to http://localhost:8080/hello-vaadin to see it running!
Average (2 Votes) ![]() ![]() ![]() ![]() |