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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
UI Parameters + View
Hello,
I'm using the Spring integration with annotations to create UI's, and I'm about to introduce some Navigator goodness to show different views on the same data.
I'm trying to work out the best way to achieve this, using some kind of parameter - ideally in the URI - to identifiy the data to be shown.
As an example, lets imagine that we have a UI to display information about a person, and we are using the Navigator to show those different views.
I'd like to have a URI that looks something like
http://host/application/person/1#view1
http://host/application/person/1#view2
http://host/application/person/1#view3
Reading https://vaadin.com/wiki/-/wiki/Main/Using+parameters+with+views it looks like the "canonical" approach is to do
http://host/application/person#view1/1
http://host/application/person/#view2/1
http://host/application/person#view3/1
Is that correct? Is there a relavtively light/simple way to achieve what I want (using the path to pass in parameters, as opposed to the fragment)?
Cheers,
Charles
Hi Charles,
The Navigator chapter of Vaadin book https://vaadin.com/book/vaadin7/-/page/advanced.navigator.html has some good information on how to achieve this. Basically you have to use something like the second approach in a Vaadin application. Parameters can also be passed to the view in the uri fragment (see the link).
Best regards,
Pontus