Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Vaadin spring integration

Octave WOKPO
7 years ago Dec 19, 2015 1:05pm
Ilia Motornyi
7 years ago Dec 21, 2015 3:56pm
Francisco Serrano
7 years ago Dec 21, 2015 8:09pm

You usually need to "auto discover" the views with the SpringViewProvider.
@Inject private SpringViewProvider viewProvider;
You inject this provider into your UI and then setup a layout/panel to use it as the view container ("viewDisplay").
VerticalLayout viewDisplay = new VerticalLayout();

Have a look at this:
Create a view, annotating the class with @SpringView(name = "theNameOfYourView")
Instanciate a Navigator using the UI and the view container (the layout you just created)

this.navigator = new Navigator(this, viewDisplay);

and then just:


This will basically make your view appear as the content for the "viewDisplay" layout.
As Ilia already stated, some code or repository URL would be of help to assist you

Octave WOKPO
7 years ago Dec 22, 2015 10:47am

ok thank you verry much. Every thing is work so good now.

Francisco Serrano
7 years ago Dec 22, 2015 11:00am
Octave WOKPO
7 years ago Dec 22, 2015 11:05am
Francisco Serrano
7 years ago Dec 22, 2015 11:14am