-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello everyone,
I'm trying to find a way, to create a new browser tab and display a single panel in there. The panel should be able to interact with the rest of the application like before, from what I could understand in the GUI what I need is a new page, containing the panel, displayed in a new browser tab. I assume that, as I have to stay in the same Session and there can be only one Desktop per Session.
I could not find anything anywhere about this topic. Windows do not work, as I need the window to be detached from the browser, the URL stays the same and a user cannot connect to the application twice.
Help would be appreciated. To me it looks like it's not possible, if anyone can validate that I'd be happy as well. Using zk8.5.0
As chillworld already pointed out, it is a standard case in ZK to have multiple Desktops in a Session, 1 for each browser-tab / iframe.
Communication between desktops can then happen using a Session scoped Event queue:
A simple alternative is to store shared information in the session, both Desktops then have access to this information (as always be careful about concurrent access).
It is possible to limit the number of Desktops per session (default 15) - You can check your zk.xml whether this is the case giving you the impression multiple desktops are not possible.
Robert
Asked: 2018-05-23 21:11:57 +0800
Seen: 18 times
Last updated: Jun 06 '18
There can be more desktops in a session
chillworld ( 2018-05-24 02:45:14 +0800 )editOk thanks for the answeres. After trying around for a bit I realized I did not phrase my question right: I need to open a new browser tab/window and display a ZUL from within the same session as the main application. And I can't figure out how to open the new tab within the same session.
fthoma ( 2018-06-04 20:09:08 +0800 )edithmm by default a new browser tab will use the same cookies (including the JSESSIONID cookie) so the new tab should implicitly be part of the existing session. However there are plugins for everything, also those that prevent sharing cookies between browser tabs.You might just have to deactivate them
cor3000 ( 2018-06-05 09:56:30 +0800 )editI don't use any plugins in my browser but I am unsure about the ZK application. It's a huge project I am working with, but none of the developers now enough about this technical side of zk. The headaches just start with this popup/session problem. Guess I just keep lookin, thanks for te help!
fthoma ( 2018-06-05 14:45:54 +0800 )editBut you are able to open the new tab or you need the code for that?
chillworld ( 2018-06-06 02:54:53 +0800 )edit