-
FEATURED COMPONENTS
First time here? Check out the FAQ!
The basic problem is my desktop cleanup listener is not being called when the application is accessed from an ipad, but it is called when accessed from a PC browser (ubuntu, windows, mac - doesn't matter)
I have defined a desktop listener in zk.xml :
<listener>
<description>Called when the ZK Desktop is detroyed</description>
<listener-class>com.dh.ui.common.desktop.DHzDesktopCleanup</listener-class>
</listener>
in Java :
public class DHzDesktopCleanup implements DesktopCleanup
{....
@Override
public void cleanup(Desktop desktop) throws Exception
{....
}
This is called as it should be when I access my application from a desktop browser. However, when I access it from the Ipad (from within our webapp or using safari) the cleanup is never called.
I am monitoring desktops using the following code on a page to keep track of sessions and desktops. I also have set a breakpoint in the cleanup method to check when it's being called.
Statistic statistic = (Statistic)Executions.getCurrent().getDesktop().getWebApp().getConfiguration().getMonitor();
_activeDesktops.setValue(new Integer(statistic.getActiveDesktopCount()).toString());
_activeSessions.setValue(new Integer(statistic.getActiveSessionCount()).toString());
_totalDesktops.setValue(new Integer(statistic.getTotalDesktopCount()).toString());
_totalSessions.setValue(new Integer(statistic.getTotalSessionCount()).toString());
If I only access the application from the desktop the active count will go up and down correctly with the number of connections. When I access from the Ipad, the count only goes up, never goes down even when I kill the connecting app or safari.
Is this a bug or is something else going on?
Thanks! Andy
Asked: 2015-03-27 17:12:50 +0800
Seen: 10 times
Last updated: Mar 27 '15
How to stop combining commands in an ajax call ?
zk.auSend not called on composer
Font Awesome Problem with IE8 when security option "font download" is disabled
Send a client event with JSON data
How to capture the Browser Window Resize/Size Event
Toggled Popup - Close ONLY on toggling, not on focus lost
Verify existence -Verificar existencia DNI