-
New Feature
-
Resolution: Unresolved
-
Major
-
None
-
6.5.3
-
None
Currently to use load-after feature to load the bindings after some event, one has to define a new command in ZUL which is sent on some event, and then define an empty command handler method in java. It is suboptimal, as in simple cases it clutters java classes with useless empty methods.
It could be improved by allowing to specify load-after condition on some event (as it was in zkplus databind):
<checkbox id="checkbox" checked="@bind(vm.checked)" /> <div id="divToLoadAfterCheck" visible="@load(vm.checked, after=checkbox.onCheck)">
Alternatively, it would be acceptable to define the command in zul e.g. onCheck="@command('onChecked')", without having to implement it in java. If it conflicts with the way @command is implemented, another convenience annotation could be added, e.g. @simpleCommand