0

Infinite processing in calendars when set mold to "month"

asked 2024-03-30 00:56:03 +0800

simplex gravatar image simplex
3 1

calendar version: 3.1.2 zk version: 8.5.0

Im trying to figure out how to handle calendar in mvvm. When i set mold in:

calendars model="@load(vm.calendarModel)" mold="month"

and SimpleCalendarModel has any AbstractCalendarItem, page starts infinite processing. But if model is empty everything is fine.

What should i do?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2024-04-01 09:57:00 +0800

MDuchemin gravatar image MDuchemin
2560 1 6
ZK Team

Do you see any error messages in the web browser's JavaScript console when triggering the issue? or any error in the Java console at server side?

link publish delete flag offensive edit

Comments

Nothing at all.Though if there arent any items in the CURRENT month, but there're some in months before or after its alright. When i switch to next/previous month i can see items well, but error occured: Failed to process setAttr Cannot read properties of undefined (reading 'firstChild') (TypeError)

simplex ( 2024-04-01 18:30:17 +0800 )edit

try applying the workaround script in this ticket: https://tracker.zkoss.org/browse/ZKCAL-123 and check if it prevents the issue

MDuchemin ( 2024-04-01 18:54:06 +0800 )edit

Thank you very much. This script helps

simplex ( 2024-04-01 20:49:43 +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: 2024-03-30 00:56:03 +0800

Seen: 6 times

Last updated: Apr 01

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