The value of @BindingParam can be omitted

XMLWordPrintable

    • Type: New Feature
    • Resolution: Done
    • Priority: Normal
    • 9.5.0
    • Affects Version/s: 9.0.0
    • Component/s: Databind 2
    • None

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

            Assignee:
            rudyhuang
            Reporter:
            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