Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vaadin and Spring MVC Integration

Tags:

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.

like image 461
dakull Avatar asked Jul 26 '09 19:07

dakull


People also ask

Is vaadin from spring?

Vaadin is also a recognized dependency by the Spring Initializer.

Which is the UI Web framework that is built to use spring boot vaadin?

Hilla - Hilla (previously Vaadin Fusion) is the modern web framework for Java. It Integrates a Spring Boot Java backend with a reactive TypeScript frontend.

What is Spring MVC used for?

What Is Spring MVC? Spring MVC is a library within the Spring framework that simplifies handling HTTP requests and responses. It's built on the Servlet API and is an essential component of the Spring Framework.

Can we use MVC in spring boot?

Yes, you can use Spring MVC with Spring Boot. To create and run a Spring MVC web application in spring boot, you need to add the spring-boot-starter dependency in your pom. xml file.


2 Answers

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

like image 187
Jens Jansson Avatar answered Sep 17 '22 15:09

Jens Jansson


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.

like image 32
dhrbo Avatar answered Sep 21 '22 15:09

dhrbo