I wasn\'t able to successfully integrate the official Vaadin-CDI-Integration-Addon, since after finishing the official integration instructions, the following Exception
You have to work off the following steps to successfully integrate the official CDI-Integration-Addon into your Vaadin project.
?restartApplication
parameter from the URL. This avoids the Exception
.@CDIUI
public class ExampleCDIUI extends UI {
@Inject
MyLocalBeanInterface myBean;
@Override
public void init(VaadinRequest request) {
Label label = new Label("Hello Vaadin user");
setContent(label);
// myBean should be accessible now.
}
}
That's it. I hope this helps :-)