Loading...
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
TUTORIAL

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

Passing the id of an object to another view

Paula-Diana Băcîrcea
2 years ago May 13, 2020 5:56pm
Ronny Edler
2 years ago May 14, 2020 9:55am

Hi,

you can use the QueryParameter class for that.

Map<String, List<String>> myParams = new HashMap<>();
myParams.put("key1", Arrays.asList("value1", "value1A", "value1B"));
myParams.put("key2", ...);

QueryParameters queryParameters = new QueryParameters(myParams);
UI.getCurrent().navigate("bookings", queryParameters);  
Paula-Diana Băcîrcea
2 years ago May 14, 2020 1:01pm