ZK 9 Listhead property children not found exception

asked 2020-01-30 17:44:30 +0800

sesong11 gravatar image sesong11
17 3

updated 2020-01-30 17:59:23 +0800

Property children worked on version 8.6

<listhead children="@load(vm.headers)">

when I change to version 9 it error

Method setChildren not found for class org.zkoss.zul.Listhead
org.zkoss.zk.ui.metainfo.PropertyNotFoundException: Method setChildren not found for 
class org.zkoss.zul.Listhead
at org.zkoss.zk.ui.metainfo.Property.resolve(Property.java:218)
at org.zkoss.zk.ui.metainfo.Property.assign0(Property.java:247)
at org.zkoss.zk.ui.metainfo.Property.assign(Property.java:174)

Properties setChildren not found exception.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-01-31 12:54:35 +0800

hawk gravatar image hawk
3205 1 5
http://hawkphoenix.blogsp... ZK Team

updated 2020-01-31 12:58:47 +0800

I created a children binding example with <listhead> and it works as expected. Please check http://zkfiddle.org/sample/6iq8va/2-children-binding

could you provide a runnable example similar to mine? so that we can reproduce your case. You can create such a reproducible example by removing other irrelevant components and simplify the listbox progressively, then you might find the root cause.

link publish delete flag offensive edit


Hi, I have update your code. It not error, but another issue when I refresh data. it show blank header and cells.

sesong11 ( 2020-02-03 18:06:20 +0800 )edit

Sorry update can not be saved. On init my header and data are empty, and I have a button to call command to refresh data and header which select from database. but it show blank header & cell.

sesong11 ( 2020-02-05 12:34:24 +0800 )edit

so, is your problem solved? since I can't imagine the problem you described without a code example.

hawk ( 2020-02-07 14:54:50 +0800 )edit

if you use a ListModelList to store headers, calling ListModelList API will automatically update the rendering in your browser. If you don't use ListModelList, then you have to @NotifyChange by yourself.

hawk ( 2020-02-10 10:14:36 +0800 )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

1 follower



Asked: 2020-01-30 17:44:30 +0800

Seen: 7 times

Last updated: Jan 31 '20

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