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

Binding fails to trigger if another binding use parent bean with operator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 9.5.1
    • None
    • Security Level: Jimmy
    • None
    • None

      Steps to Reproduce

      https://zkfiddle.org/sample/2vqp1q4/6-Binding-firing-not-trigger-due-to-shadow-element-operators

      Run fiddle

      Click "update InBean2"

      Current Result

      The 2nd result doesn't update

      The 4th result (same binding) updates

      Expected Result

      The 2nd result should trigger

      Debug Information

      Happens only when a number of factors are met:

      • Inside a shadow element, First child of shadow element has a binding (any kind, any target)
      • failing binding target a property of a bean (ex: @load(bean.property))
      • another binding use the bean with an operator below the failing binding (ex: @load(empty bean))
      • the bean is part of a form proxy object

      Workaround

      multiple based on which is the easier to implement:

      • Add a div (or other component) without bindings as child of the shadow element
      • Add a custom-attribute binding the bean to the component holding the failing binding (ex: foo="@load(bean)")

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

              Created:
              Updated:
              Resolved: