0

Unsupported child for Listbox: <Label null>

asked 2017-12-22 08:43:44 +0800

linux123 gravatar image linux123
1

my zul code is follow:**   <listbox status="@ref(currentPage.data)">

        <listitem>             <listcell label="order 1"/>             <listcell label="@load(status)"/>         </listitem>            </listbox> when i run the zul,it throws the follow exception:**

Unsupported child for Listbox: <Label null>
delete flag offensive retag edit

1 Answer

Sort by » oldest newest most voted
0

answered 2017-12-22 11:10:13 +0800

cor3000 gravatar image cor3000
4293 1 7
ZK Team

your code snipped was containing some non breaking space characters (you can see that in a hex editor) for whitespace between tags only normal spaces,tabs linebreaks are ignored.

non breaking spaces are considered letters and produce an implicit label in zul - hence the error message.

here the corrected snippet:

<listbox status="@ref(currentPage.data)">
  <listitem>
    <listcell label="order 1"/>
    <listcell label="@load(status)"/>
  </listitem>
</listbox>
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
3 followers

RSS

Stats

Asked: 2017-12-22 08:43:44 +0800

Seen: 6 times

Last updated: Dec 22 '17

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