Annotation Interface BindingParams


@Target(PARAMETER) @Retention(RUNTIME) public @interface BindingParams
Marker annotation to identify the name of a parameter of a method.
The value of this parameter, which is a Bean object, will be created with properties from the current binding arguments. Example:

 POJO:
 public class Product {
     private int id;
     private String label;
     // Getters & setters are omitted
 }

 ZUL:
 <button onClick="@command('addProduct', id=1, label='Water')"/>

 VM:
 public class MyVM {
   @Command
   public void addProduct(@BindingParams Product product) {
   }
 }
 
Since:
9.5.0
Author:
rudyhuang
See Also: