-
Bug
-
Resolution: Fixed
-
Normal
-
8.5.2
-
None
-
Security Level: Jimmy
-
None
-
ZK 8.6.0 S1, ZK 8.6.0 S2
-
None
Steps to Reproduce
1. run the attached file 4016.zul
2. check server console
Current Result
it doesn't print anything when the listbox is created
@Listen doesn't work correctly inside a HTMLMacroComponent
Expected Result
print onCreate event information
Debug Information
- 8.5.1.2 works correctly.
- in HtmlMacroComponent's constructor, call getRoot().addEventListener("onCreate", ...) works as expected.
Workaround
- add an event listener with addEventListener()
getRoot().addEventListener("onCreate", ...) - listen to onCreate in a composer instead of inside a HtmlMacroComponent subclass
- replace a macro with a <apply> like:
- relates to
-
ZK-3843 wire an event listener doesn't work for a Listitem in HtmlMacroComponent
- Closed