-
FEATURED COMPONENTS
First time here? Check out the FAQ!
hi there
we have a problem I think it could be a bug
here is our selecttor composer code
@Listen("onOpen = #southContainerId; #southInfoContainerId; #southWIFIContainerId")
public void onOpenSouthContainer(Event evt) {
evt.stopPropagation();
((South)evt.getTarget()).setCollapsible(false);
System.out.println( evt.getTarget().getAttributes());
System.out.println("on open event "+evt.getTarget().getId());
System.out.println("IS OPEN "+((South)evt.getTarget()).isOpen());
System.out.println("*******+ ");
}
it prints
{_SELECTOR_COMPOSER_EVENT_LISTENERS=[onClick#public void com.aniachi.zul.zhtml.BuildPeticionController.onOpenSouthContainer(org.zkoss.zk.ui.event.Event)]}
on open event southInfoContainerId
IS OPEN false
*******+
{_SELECTOR_COMPOSER_EVENT_LISTENERS=[onClick#public void com.aniachi.zul.zhtml.BuildPeticionController.onOpenSouthContainer(org.zkoss.zk.ui.event.Event)]}
on open event southInfoContainerId
IS OPEN false
*******+
here is the zul page
<south collapsible="true" open="false" splittable="false"
height="560px" id="southInfoContainerId"
style=" border-radius: 0px 0px 12px 12px; ">
I'm just looking to this code => trying to reproduce it in fiddle and come up to this very strange affect.
fiddle : http://zkfiddle.org/sample/3a7c0bu/1-bug-suspect-in-Listen
Steps : Run fiddle (zk 6.5.x to zk 7.0.3)
=> click on the North for showing the north.
=> You see the north coming open and a messagebox appears (north is still open in the back.)
=> Click ok and the panel is closing again.
=> remove the messagebox and it works...
=> change the messagebox to System.out.println("*+ "); and it works to ...
@ZK, can you look at this and explain when it's correct behavior or confirm if it's a bug?
Greetz chill.
Asked: 2014-10-29 16:55:28 +0800
Seen: 12 times
Last updated: Oct 30 '14
In ZK's spec, if it's floating-open, calling isOpen will return false. isOpen should be used for detecting if a panel is really opened.
JerryChen ( 2014-11-05 01:26:54 +0800 )edit