Affects Version/s: 8.5.0
Fix Version/s: 8.5.2
Security Level: Jimmy
gh.sprint.customfield.default.name:ZK 8.5.2 S1
1. run the attached zul
2. click a listitem
a notification appears
- if a listitem is statically written in a zul, no issue. If we create a listitem in a template, this issue happens.
- SelectorComposer wires event listeners as expected for comp.addEventListener("onCreate", new AfterCreateWireListener());
- Even with SelectorComposer, we can't listen onClick for dynamically-created listitem e.g. if one listitem is added when clicking a button, ZK doesn't wire it with onClick listener, we need a better way to listen to events for dynamically-created components.
- replace macro with <apply>
- use "forward" event
then you can create a listener: