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

leaking "each" variable with nested childen/model binding

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.5.2
    • Fix Version/s: 8.0.0
    • Component/s: Components, Databind 2
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.0.1

      Description

      see the attached example, it shows the problem with 2 workarounds.

      the outer "each" variable replaces the "null" value in the combobox' first item.
      Resulting in the first label rendering incorrectly.
      Still the combobox selection correctly contains [null] just the label does not receive the "null" value, but a Reference from the outer div/s children binding.

        Activity

        Hide
        jumperchen jumperchen added a comment - - edited

        Please use a Null Object instead of put null value for this case. The current underlying implementation of DataBinding and EL resolver do not allow to put a null value.

        Show
        jumperchen jumperchen added a comment - - edited Please use a Null Object instead of put null value for this case. The current underlying implementation of DataBinding and EL resolver do not allow to put a null value.
        Hide
        cor3000 cor3000 added a comment -

        in case of using enums for the comboitem the Null Object approach is not feasible so that the workaround 1 or 2 of the example needs to be applied

        Show
        cor3000 cor3000 added a comment - in case of using enums for the comboitem the Null Object approach is not feasible so that the workaround 1 or 2 of the example needs to be applied
        Hide
        ChunfuChang ChunfuChang added a comment -

        fixed since 2015/08/18

        Show
        ChunfuChang ChunfuChang added a comment - fixed since 2015/08/18

          People

          • Assignee:
            christopherszu christopherszu
            Reporter:
            cor3000 cor3000
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 6 hours
              6h

                Agile