-
Bug
-
Resolution: Fixed
-
Normal
-
8.6.1
-
None
-
Security Level: Jimmy
-
None
-
ZK 8.6.2 S1, ZK 8.6.2 S2
-
None
Steps to Reproduce
http://zkfiddle.org/sample/3g7j14l/4-include-messagebox-bug
click "show and refresh"
close messagebox
click "show and refresh" again
Current Result
messagebox doesn't show up
Expected Result
messagebox should show up
Debug Info
Messagebox is created inside the included page.
When include src is changed, include components are dropped from working component tree and a new page without messagebox is sent to AuWriter
Root Cause
org.zkoss.zk.ui.impl.AbstractExecution.getCurrentPage() will return included page when creating the Messagebox, since Messagebox.show doesn't specify the root page.
Workaround
Use include in instant mode
>> can't use ?par=val in include src URL as this force defer mode
To refresh include, use setSrc(null);setSrc(actualPath) instead