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

Support a way to trigger MVVM command silently

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Normal Normal
    • 8.0.1
    • 8.0.0
    • Databind 2
    • None

      Sometimes we want a Form binding to save the data before or after some commands and these commands might not appear in a ViewModel object, so if there is a way to ignore the binder implementation throwing an exception.

      For example,

      // zul
      <grid form="@id('fx') @load(vm.currentBook) @save(vm.currentBook, before='save')"/>
      
      // java
      // @Command("save")
      // public void doSave() {}
      

            jumperchen jumperchen
            jumperchen jumperchen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h