Closed dasfuu closed 1 year ago
Vaadin Version: 23.1.0.beta1 Quarkus Version: 2.8.2.Final
I have a view and a parent layout. I cannot @Inject in the layout class with Quarkus. But I can in a project deployed in a Wildfly Server.
@Route(value = "", layout = MyLayout.class) public class MainView extends VerticalLayout implements AfterNavigationObserver { @Inject Something someService; //this works @Override public void afterNavigation(AfterNavigationEvent afterNavigationEvent) { System.out.println(someService); //Prints null } } @Route(value = "", layout = MyLayout.class) public class MyLayout extends AppLayout implements AfterNavigationObserver { @Inject Something someService; //this does not work @Override public void afterNavigation(AfterNavigationEvent afterNavigationEvent) { System.out.println(someService); //Prints class instance } }
Seems like RouterLayout implementors are not considered during bean discovery. We should manage them in the same way we do for HasErrorParameter implementors
RouterLayout
HasErrorParameter
Vaadin Version: 23.1.0.beta1 Quarkus Version: 2.8.2.Final
I have a view and a parent layout. I cannot @Inject in the layout class with Quarkus. But I can in a project deployed in a Wildfly Server.