Hi, could you please help out with this question (https://vaadin.com/forum/

Hi, could you please help out with this question (https://vaadin.com/forum/thread/18199853/cdi-getting-the-instance-of-a-view-in-platform-14)

In vaadin 8 we had this com.vaadin.cdi.CDIViewProvider.getView("name-of-view") to get the instance of a CDI View. This has all changed in Platform 14. Need to know how to get the instance of a view/route.

Thanks,

Julio

I was able to solve this using

MyClass myClass = BeanProvider.getContextualReference(MyClass.class, false);

This gives you the instance of the view/route/context you are trying to access.