0

The insertion [<Listitem null>] of the shadow [XYZ]] cannot be orphan

asked 2021-10-18 20:09:58 +0800

ivtu gravatar image ivtu
11 2

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

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-10-20 10:40:31 +0800

cor3000 gravatar image cor3000
6280 2 7

updated 2021-10-20 10:42:53 +0800

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.

https://github.com/zkoss/zk/blob/27f90007e4d63638036b059da0ce2cd608b9b597/zk/src/org/zkoss/zk/ui/HtmlShadowElement.java#L1155-L1160

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2021-10-18 20:09:58 +0800

Seen: 10 times

Last updated: Oct 21 '21

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More