Hi, I can’t find the MainView in your demo app. How is Vaadin know the start or Entry point? Sorry, I’m quite new in Vaadin.
https://gitlab.com/KaesDingeling/Hybrid-Menu/tree/vaadin10/HM-Demo/src/main/java/de/kaesdingeling/hybridmenu/demo
Thanks
Hi, I can’t find the MainView in your demo app. How is Vaadin know the start or Entry point? Sorry, I’m quite new in Vaadin.
https://gitlab.com/KaesDingeling/Hybrid-Menu/tree/vaadin10/HM-Demo/src/main/java/de/kaesdingeling/hybridmenu/demo
Thanks
The VaadinServlet finds the views with @Route Annotations automatic
so, it all started from here?
@Route(value = “”, layout = DemoRouterLayout.class)
public class HomePage extends VerticalLayout {
public HomePage() {
add(new H2("Home"), new H5("Home view"));
}
}
It re-routed to DemoRouterLayout?
Thanks
The DemoRouterLayout serves as a basis to display the content of HomePage in the right place. Responsible for this is the RouterLayout which is implemented in HybridMenu.
@Override
public void showRouterLayoutContent(HasElement content) {
... Code from https://gitlab.com/KaesDingeling/Hybrid-Menu/blob/vaadin10/HybridMenu/src/main/java/de/kaesdingeling/hybridmenu/HybridMenu.java
}
Re-Routed cannot be said but rather the basis on which the content is displayed.