I have a vaadin application that redirect after login to a view with header / left menu and a main panel.
how can I set the menu or any link to switch the main panel according to a specific contents
If I click contact It set ContactLayout in the main panel.
PS: I know how to set a menu like in vaadin documentation but I want to know what to set as command for the menu item.
thanks
I suggest you to keep a
Map<MenuItem,AbstractLayout>and when a MenuItem is clicked, remove all the components of your Panel, and add the layout get from the Map.Visually :
}
Hope it will work.
Regards
Éric