Vaadin and Spring MVC Integration
Solution 1
Spring support for Vaadin is quite new, but there has recently been a lot of talk about it on the forum and some have tested it. Seems to work. There is an article on the Vaadin wiki about it, and some threads on the forum talking about Vaadin + Spring integration:
Wiki: Spring Integration
Forum: can it mill toolkit be integrated with spring application
Forum: Spring integration problem
Forum: Working with Spring
Forum: Spring Integration
Solution 2
Not sure if it is a prudent choice to integrate vaadin with Spring MVC. Its a waste. MVC is meant for typical page based web apps where as vaadin is more view state based like a desktop app. I would typically do a meet in the middle and have my business tier and data access layer in spring and use Vaadin as is.
Solution 3
See this thread on the Vaadin forum for my AutowiringApplicationServlet
solution, including a sample WAR application.
Solution 4
agreed with dhrbo.
its not wise to use spring mvc, more so with webflow with vaadin. vaadin is another web-app framework.
if you want the idea of "spring mvc" in your vaadin project, integrate it with spring-core, beans and context. that way you can get a clear separation between controllers, ui (vaadin), and models (integrate with hibernate / orms)
Solution 5
Here's an article on integrating Spring service layer with Vaadin. It does not directly relate to Spring MVC that the original question was about, but it can still be a pointer for other readers researching Vaadin Spring integration.
http://psponcoding.blogspot.com/2011/03/vaadin-spring-integration.html
Related videos on Youtube
Comments
-
dakull almost 4 years
I'm thinking about the possibility of using Spring MVC with Vaadin Framework. Are there any documented ways of making them play nicely together ? Also is it a good idea to use them together ? relating to performance; I'm going to run the app on a dedicated server.
To make my question a bit more clear, how can i return a modelandview from a Spring MVC Controller that wll render using Vaadin and can access all the model data.
-
rochb about 14 yearsI'd reference the very complete SpringApplication: dev.vaadin.com/svn/incubator/SpringApplication
-
Michael Bavin about 14 yearsI was also looking for Vaadin integration with Spring MVC. The answer you gave is integration with Spring (dependency injection etc). I don't see any of that... Thanks
-
dma_k over 13 yearsI would also add: dev.vaadin.com/ticket/4132 and vaadin.com/forum/-/message_boards/message/112083 but it is basically about the same
-
lsiu about 13 yearsI agree with Michael Bavin. IoC and Vaadin different is quite different from MVC and Vaadin integration. Vaadin package has an "multiapp" example where multiple Vaadin application runs within one html. I was hoping to see an example where a view in spring MVC is running multiple Vaadin applications.
-
Archie about 12 yearsA more evolved solution is now available as the Spring Stuff Add-on: vaadin.com/directory#addon/spring-stuff