Loading...
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
TUTORIAL

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

Vaadin With SpringBoot Autowire Failed

Nagaraj RC
5 years ago Jul 27, 2016 1:09pm
Marco Collovati
5 years ago Jul 27, 2016 1:23pm
Nagaraj RC
5 years ago Jul 27, 2016 1:52pm
libo jiang
5 years ago Jul 27, 2016 2:05pm

vaadin spring integration mainly focus on UI and View, with uiscope and viewscope, these two scope are specially handled. I suggest you to read source code carefully.

Your code is illed. The prefer way is to use navigator with view. Besides ui and view, all your component should be  prototype scoped, Use it totally in spring way. The simple rule is injec applicationcontext in to view, then use applicationContext.getBean() method to got component.

If you follow this rule, you can take all power both from vaadin and spring.

Nagaraj RC
5 years ago Aug 10, 2016 11:23am
Tatu Lund
5 years ago Aug 10, 2016 1:27pm
Nagaraj RC
5 years ago Aug 10, 2016 1:39pm
libo jiang
5 years ago Aug 11, 2016 2:09am
Nagaraj RC
5 years ago Aug 12, 2016 8:22am
libo jiang
5 years ago Aug 12, 2016 8:40am
Nagaraj RC
5 years ago Aug 12, 2016 9:32am
Pwndz Kigozi
4 years ago Jan 04, 2018 11:49am