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

The value of @BindingParam can be omitted

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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