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

BindingParam annotation support converting from JSON to POJO automatically

XMLWordPrintable

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

      For example,

      Client side:

      zkbind.$(someone).command('dataChange', {data:{title: "myData"}});
      

      Server side:

      public static class DataObject {
      	private String title;
      	public void setTitle(String title) {
      		this.title = title;
      	}
      	public String getTitle() {return title;}
      }
      @Command
      public void dataChange(@BindingParam("data") DataObject data) {
      	// do something here.
      }
      

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

              Created:
              Updated:
              Resolved: