Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Navigators: Can I do it?

Guilherme Vicente
7 years ago May 22, 2015 1:47pm

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.

Joonas Lehtinen
7 years ago May 22, 2015 5:05pm
Guilherme Vicente
7 years ago May 22, 2015 9:46pm
Paulo Vilela
7 years ago May 22, 2015 10:24pm

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

Guilherme Vicente
7 years ago May 25, 2015 12:56pm
Guilherme Vicente
7 years ago May 28, 2015 1:06pm