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

The value of @BindingParam can be omitted

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: 9.0.0
    • Fix Version/s: 9.5.0
    • Component/s: Databind 2
    • Labels:

      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

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