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

multiple ZKBIND annotations at a field undecided

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: 8.0.2
    • Fix Version/s: 8.5.2
    • Component/s: Databind 2
    • Security Level: Jimmy
    • gh.sprint.customfield.default.name:
      ZK 8.5.2 S1

      Description

      I discovered this TODO in the code while debugging why an additional @ZKBIND annotation didn't trigger a save binding on a custom event

      https://github.com/zkoss/zk/blob/v8.0.2/zkbind/src/org/zkoss/bind/impl/AnnotationUtil.java#L77

      e.g. trying to @save the textbox value on a custom event

      @ComponentAnnotation("@ZKBIND(ACCESS=both, SAVE_EVENT=onFormattedInput, LOAD_REPLACEMENT=rawValue, LOAD_TYPE=java.lang.String)")
      @Override
          public Object getValue() {
             ... 
          }
      

      it needs to be decided whether multiple annotations for the same property
      1. are allowed => implement this feature => multiple listeners (favored option)
      2. are ignored => throw an exception or log a warning that something gets ignored to give the developer feedback that something won't work as expected

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                CharlesQiu CharlesQiu
                Reporter:
                cor3000 cor3000
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 days
                  2d
                  Remaining:
                  Time Spent - 7 hours, 30 minutes Remaining Estimate - 1 day, 30 minutes
                  1d 30m
                  Logged:
                  Time Spent - 7 hours, 30 minutes Remaining Estimate - 1 day, 30 minutes
                  7h 30m