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

Name of argument on @BindingParam must be the same of @BindingParam annotation's value property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Normal Normal
    • None
    • 6.5.0
    • Databind 2
    • ZK 6.5.0 CE Edition, Linux Kubuntu 11.04, Glassfish 2.1

      Method:

      ModelView
      @GlobalCommand
      @NotifyChange("vmInitData")
      public void deleteCharges(@BindingParam("items") Set<Charge> dataItems) { ....
      

      is not called unless rename "dataItems" argument declaration to "items", like so:

      ModelView
      @GlobalCommand
      @NotifyChange("vmInitData")
      public void deleteCharges(@BindingParam("items") Set<Charge> items) { ....
      
      ZUL Fragment
      <button label="Eliminar" onClick="@global-command('deleteCharges',items=vm.selectedCharges)" disabled="@load(empty vm.selectedCharges)" />
      

      Notes:

      • Call without param is called (onClick="@global-command('deleteCharges'))

            Unassigned Unassigned
            szarza szarza
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: