Security Level: Jimmy
ZK 8.6.0 S1, ZK 8.6.0 S2
Listbox throw a
"org.zkoss.zul.Listfoot cannot be cast to org.zkoss.zul.Listitem"
exception during org.zkoss.zul.Listbox.renderItems(Set<? extends Listitem>)
because it expects only listitems and received a listfooter instead
Client shouldn't send non-listitems to be rendered
set of items to render (which shouldn't contain Listfooter but does in this case) is sent to server by
During _onRender, the list of listitems is built using zul.sel.ItemIter which should only return listitems
However, the ItemIter init will skip visible(false) children of listbox until it finds a child that is not visible(false).
Since this is done using nextSibling, init will return any child, not just listitems
ItemIter init doesn't filter non-item children of mesh widget