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

The value of @BindingParam can be omitted

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Normal Normal
    • 9.5.0
    • 9.0.0
    • Databind 2

      Steps to Reproduce

      public MyVM {
        @Command
        public void handle(@BindingParam("format") String format, 
                           @BindingParam("price") double price, 
                           @BindingParam("id") int id) {
          // omitted
        }
      }
      

      Current Result

      Even both variable name and the parameter name are the same, we can't omit it.

      Expected Result

      public MyVM {
        @Command
        public void handle(@BindingParam String format, 
                           @BindingParam double price, 
                           @BindingParam int id) {
          // omitted
        }
      }
      

            rudyhuang rudyhuang
            rudyhuang rudyhuang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d