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

nested reference binding - inconsistent @load triggers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 8.0.5
    • 8.0.4.1
    • Databind 2
    • Security Level: Jean
    • None

      Steps to Reproduce

      run the attached example notify-nested-ref.zul OR notify-nested-ref2.zul
      both create the same output
      click the left "+1" button
      click the right "+1" button

      Current Result

      the left label age is only updated after the right "+1" button for person 2 is clicked

      Expected Result

      the age labels should increment individually when either button is clicked

      Debug Info

      notify-nested-ref.zul shows a simplified scenario using shadow elements
      notify-nested-ref2.zul shows the same without using shadow elements, to prove it also happens without shadow elements

      the zul files contain comments with additional hints:
      e.g. moving the person.name label after the age label will fix the problem for unknown reasons.

      Workaround

      avoid references partially sharing the same path

      e.g. change

      person="@ref(couple.person2)"
      details="@ref(couple.person2.personalDetails)"
      

      to

      person="@ref(couple.person2)"
      details="@ref(person.personalDetails)"
      

        1. notify-nested-ref.zul
          1 kB
          cor3000
        2. notify-nested-ref2.zul
          0.9 kB
          cor3000
        3. NotifyNestedReferenceVM.java
          2 kB
          cor3000

            DevChu DevChu
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 3 hours
                2d 3h