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

Allow custom-attribute setting for checkmarkDeselectOthers

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: 8.5.1.2
    • Fix Version/s: 8.5.2
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.5.2 S1, ZK 8.5.2 S2

      Description

      currently

      Listbox setting for checkmarkDeselectOthers is retreived from library property only
      https://www.zkoss.org/wiki/ZK_Configuration_Reference/zk.xml/The_Library_Properties/org.zkoss.zul.listbox.checkmarkDeselectOthers
      https://github.com/zkoss/zk/blob/master/zul/src/org/zkoss/zul/Listbox.java#L3459
      This means that the setting must be activated or disabled for all listboxes in the application.

      Improvement

      Use Utils testAttribute to check for custom attribute, then default to library property
      https://github.com/zkoss/zk/blob/master/zul/src/org/zkoss/zul/Listbox.java#L3472
      This would allow developer to override the global setting on a case-by-case need

        Attachments

          Activity

            People

            • Assignee:
              klyvechen klyvechen
              Reporter:
              MDuchemin MDuchemin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified