I am looking for multiwindow functionality to navigate to previous UIs and their state in V7. In V6, we could navigate to myapp/1 or myapp/2 and get its respective state based on UIID. If a user refreshes the same UI, they should get a new window/UI. If they specify an older UI window name,
Here’s an example of what I am trying in my UI extended class:
protected void init(VaadinRequest request) {
if (request.getParameter("uiid") != null && request.getParameter("uiid").length() > 0) {
String windowName = request.getParameter("uiid");
UI oldUI = this.getSession().getUIById(Integer.parseInt(windowName));
if (oldUI != null) {
// how do we forward on to the old UI?
UI.getCurrent().setContent(oldUI.getContent()); // can I just forward on to the old UI instead of mirroring the old UI content?
UI.setCurrent(oldUI);
return;
}
}
initLayout();
}
In the above, I was wondering if I can simply forward to the old ui if I have found it.