Navigators: Can I do it?

Hello everybody!

I need to develop one application with two containers. The first container has one menu with the options of system. The second container has the view of selected menu.

My question is : “Can I use two navigators in an Vaadin application?”. I asked it because in my search I don’t find one solution for my problem. I found this post (https://vaadin.com/forum#!/thread/1851565) but it was three years ago, and the solutions were more focused in use an fragmented navigation.

At Book of Vaadin (https://vaadin.com/book/-/page/preface.html) I found one solution also focused in fragmented navigation (https://vaadin.com/book/-/page/advanced.navigator.html). Fragmented navigation aren’t my problem, It will be more visual for the users to functional for the system.

My friend told me It’s possible to use more the one navigator, but in the default contructor of each navigator it set this new navigator as the UIs navigator. The problem is ours first container should be the UI container, because it is the major, and we need the second to swich the views of system, like a subnavigation.

The point is the default navigator(UI.getCurrent().getNavigator()) must always use the main container. Our system will be having a major navigator (used to navigate in all of views of system). Some specific views use one second navigator to navigate between themselves.

My problem is I need two containers and I need to manage these two containers separated. Anybody can helps me?

I am meeting the Vaadin yet, and I don’t know about all of your scope of possibility. So sorry if I lost one part or forget any concept, I am keeping search one solution while I put this post in this forum.

Obs: Sorry about my English, I am improving it yet.

You can use multiple UIs

Thanks for the answer Joonas Lehtinen. But it would be very difficult to create more than one UI in our project today, due to our architecture. Do you happen to know if it’s possible to use two navigators with one UI?

i agree with Guilherme it would be really useful if we could use something like a multiple-level navigator for nested containers.

Does anybody know how we can do it? If its possible to use two navigators in one UI?

Hello everybody!

I can’t find one solution for this problem. We developed one structure that manage all of navigations in the system. Although there weren’t much answers in this forum, I think it’s a great opportunity to consider one specific forum to discuss what are the best solutions for this problem.

Anyway, thanks for all users that participated in this forum, and one more time, sorry about my English, I am improving it yet.

See you later!