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

can't use <apply> inside a Listbox's <template>

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.0.3
    • Fix Version/s: 8.0.5
    • Component/s: None
    • Labels:
      None

      Description

      steps to reproduce

      1. run the attached zul
      2. scroll down to more than 50 rows

      current result

      Error message:
      The insertion [<Listitem null>] of the shadow [<Apply@0 (<Listbox tJFP0#box1>)>] cannot be orphan

      javascript error in the console tab:

      zul.mesh.wpd:317 Uncaught TypeError: Cannot read property 'length' of undefined(…)getSigRow @ zul.mesh.wpd:317clearCachedSize @ zul.mesh.wpd:1200syncSize @ zul.mesh.wpd:573onResponse @ zul.mesh.wpd:585$supers @ zk.wpd:10776onResponse @ zul.sel.wpd:1192$supers @ zk.wpd:10776onResponse @ zul.sel.wpd:1655_invoke @ zk.wpd:12829fire @ zk.wpd:12812(anonymous function) @ zk.wpd:12950setTimeout (async)fire @ zk.wpd:12949fire @ zk.wpd:13046fire @ zk.wpd:14348doCmdsNow @ zk.wpd:20354_doCmds @ zk.wpd:20597afterResponse @ zk.wpd:20232onResponseReady @ zk.wpd:20229XMLHttpRequest.send (async)ajaxSendNow @ zk.wpd:20293sendNow @ zk.wpd:20755onClick @ zk.wpd:22770fireX @ zk.wpd:17437doClick @ zk.wpd:25984_doEvt @ zk.wpd:19553(anonymous function) @ zk.wpd:19744dispatch @ zk.wpd:5157elemData.handle @ zk.wpd:4828

      use cases

      • users would want to switch the model template inside a Listbox with <apply>
      • multiple listboxes can inject the same template (reusability)

        Attachments

          Activity

            People

            Assignee:
            christopherszu christopherszu
            Reporter:
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            3 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 - 1 day, 1 hour, 5 minutes
                1d 1h 5m