-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I am using ZK 9.1, MVVM pattern (without any component wiring in Java code) and UI Template Injection for re-using code templates. In some (rare) cases, when listbox ROD is turned off (non-ROD cases), I receive next error on first (initial) opening of listbox (listbox is inside window modal dialog in those cases):
2021-10-14T13:57:48,587 ERROR [UiEngineImpl] java.lang.IllegalStateException: The insertion [<listitem null="">] of the shadow [<if@0 (<window="" uzkqy40#wnd="">)> -> <apply@0> -> <apply@2>] cannot be orphan at org.zkoss.zk.ui.HtmlShadowElement.getIndex(HtmlShadowElement.java:1155) at org.zkoss.zk.ui.HtmlShadowElement.inRange(HtmlShadowElement.java:1193) at org.zkoss.zk.ui.Templates.findShadowChildTemplate(Templates.java:128) at org.zkoss.zk.ui.Templates.findShadowChildTemplate(Templates.java:132) at org.zkoss.zk.ui.Templates.lookup(Templates.java:100)
Sadly, I cannot prepare one ZK Fiddle example, because I have templates inside templates... When I turn on ROD, error disappears.
Has somebody clue what can be wrong?
Thanks in advance, Ivan
the issue described sounds similar (not the same) to the know error ZK-3549
I re-tested the scenario with ZK 9.1.0 (happens before 8.0.5) without getting the error you describe. (https://zkfiddle.org/sample/b5c3vf/1-bug-ZK-3549)
Maybe the scenario in the example helps to compare what's different in your case. If you can add the missing bits we'll be able to help here in the forum.
Also the related source code is available, debugging through the code may give the clue about the exact situation and involved components when this happens.
Asked: 2021-10-18 20:09:58 +0800
Seen: 10 times
Last updated: Oct 21 '21