Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2090

Add conditional load after/before support for events, not only commands

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 6.5.3
    • Databind 2
    • 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

            Unassigned Unassigned
            gediminas gediminas
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: