0

ZK 9.1 EE. JS Error on Listbox after @NotifyChange

asked 2020-07-29 18:34:02 +0800

Ignis11 gravatar image Ignis11
11 1

updated 2020-07-30 10:44:16 +0800

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

On "listbox", there is an error when "auxheaders" are using "datebox" components. It appears when "listbox" recibe an event from @NotifyChange, and show this log on console:

Uncaught TypeError: Cannot read property 'value' of undefined
    at bind_ (zul.inp.wpd:19)
    at b.$supers (zk.wpd:252)
    at bind_ (zul.db.wpd:36)
    at bindChildren_ (zk.wpd:474)
    at bind_ (zk.wpd:473)
    at b.$supers (zk.wpd:252)
    at bind_ (zul.inp.wpd:19)
    at b.$supers (zk.wpd:252)
    at bind_ (zul.db.wpd:109)
    at bindChildren_ (zk.wpd:474)
delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-07-30 11:47:21 +0800

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

Thanks for reporting this bug. I have found a reproducible example, please see https://tracker.zkoss.org/browse/ZK-4632

If you notify a change for a ListModelList, then the workaround is

Don't notify a ListModel.

Because when you call its methods e.g. add(), remove(), ListModelList will fire event to notify Listbox, so you don't have to specify it in @NotifyChange.

link publish delete flag offensive edit

Comments

Update: ZK-4632 has now been fixed in freshly 9.5.0.FL.20200822-Eval (and later versions) and will be included in 9.5.0 release.

jeanher ( 2020-08-26 09:22:51 +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

Follow
1 follower

RSS

Stats

Asked: 2020-07-29 18:34:02 +0800

Seen: 12 times

Last updated: Jul 30 '20

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