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

BindingParam annotation support converting from JSON to POJO automatically

    XMLWordPrintable

Details

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

    Description

      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.
      }
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: