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

NPEs when recreating a form using children or model binding

XMLWordPrintable

    • None

      Steps to Reproduce

      run the attached example
      click either button 3 times (toggles the editor template on/off/on)

      Actual Result

      A) and C) cause NPE when trying to render an editor template for the second time
      B) and D) show workarounds not causing the issue

      Expected Result

      creating, detaching, recreating a template should not cause an Exception

      Debug Info

      this only happens when children-binding or model-binding are used in combination with a form-binding

      Root Cause

      I assume when detaching the grid/div the form or model/children binding doesn't clean up properly causing a problem when initializing a form with the same id again

      Workaround

      included in the example, using <forEach> instead of model/children-binding avoids the error

            klyvechen klyvechen
            cor3000 cor3000
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Remaining Estimate - 2 days
                2d
                Logged:
                Time Spent - Not Specified
                Not Specified