ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

ZK Calendar 2.0 does not finish loading

gcarlos
17 Mar 2010 13:00:15 GMT
17 Mar 2010 13:00:15 GMT

Hi all,

I have got a wired problem. Somehow the calendars component refuses to work with CalendarEvents of this week. ?!?

Yes you have read right, if I insert a CalendarEvent for the next week or the week before the current week it works fine. What I experience is that the Calendar never finishes loading. I still see the "Processing...." message. In any other week it works fine.

I searched for a couple of hours and the only thing that I discovered is that the toString method of the CalendarComponent is called 3 times. Normally it is only called twice:

1) Calendars.getJSONEventMap
2) Calendars.getJSONEventList
3) Calendars.getJSONEventMap again

after that the page stays with the "Processing..." message.

I would really appreciate it if someone could help me out here.

Thank you.
Alex

gcarlos
17 Mar 2010 13:14:42 GMT
17 Mar 2010 13:14:42 GMT

Sorry forgot to mention:

I am using ZK Calendar 2.0 with ZK 5.0 EE inside a Grails Application ZKGrails-1.0M1 with added ZK 5.0 EE libs.

Thank you for your help.

P.S.: Could the problem perhaps be related to the fact that I am in the evaluation period or that I exceeded that time period?

gcarlos
17 Mar 2010 13:52:13 GMT
17 Mar 2010 13:52:13 GMT

UPDATE!

Even the ZK's own demo version of Calendar component http://zcal.zkoss.org/ has got the same problem!!!!

Cogito
18 Mar 2010 20:40:50 GMT
18 Mar 2010 20:40:50 GMT

Hi gcarlos,
I wasn't able to reproduce the problem you mentioned on http://zcal.zkoss.org/.
Could you give us more detail in reproducing the error?

samchuang
18 Mar 2010 21:38:32 GMT
18 Mar 2010 21:38:32 GMT

me too,

the calendar works for me, how to you reproduce the problem ?

gcarlos
22 Mar 2010 10:25:23 GMT
22 Mar 2010 10:25:23 GMT

Sorry for cross-posting last week. I was kinda depressed. ;-(

My answers are posted in the more recent thread.

Thank you for your help.
Alex

farmacia
29 Jul 2010 08:53:20 GMT
29 Jul 2010 08:53:20 GMT

Hi @all
I have the same Problem BUT I can reproduce it in a simple way.

THIS WORKS:
<?page title="Auto Generated index.zul"?>
<window title="Hello World!!" border="normal" width="100%">

<calendars mold="default" />

</window>

THIS DOESN'T:
<?page title="Auto Generated index.zul"?>
<window title="Hello World!!" border="normal" width="100%">

<calendars mold="month" />

</window>

It never stops processing..........

I also tried the CalendarEvent and there are really wired errors. I try to isolate this
for small project so you can reproduce it

BTW:
I use Calendar RC2.0 with ZK 5.0.3

Greedings,

farmacia

samchuang
1 Aug 2010 20:21:27 GMT
1 Aug 2010 20:21:27 GMT

Hi

refer to this thread, the problem seems fixed

farmacia
2 Aug 2010 14:40:26 GMT
2 Aug 2010 14:40:26 GMT

Hi,

I'm affraid it isn't. I tried the Calendar.jar from April and now this (it seems much older) But still got the same problem.
Anyone ?

twiegandTop Contributor
2 Aug 2010 15:48:15 GMT
2 Aug 2010 15:48:15 GMT

Farmacia,

Both your code snippets ("This works" & "This Doesn't") work fine for me. I too have the calendar.jar file from April 20th this year and I'm running ZK 5.0.3. I tested your snippets in IE7, FireFox 3.6.3, and Chrome 5.x.

Most of the time when I've seen those endless "processing..." messages it was because I had some bad JavaScript code in my zul file somewhere. Are you doing anything with JS or maybe even jQuery that might throw things off?

If you have Firebug for FireFox, does it tell you anything about any JS errors?

Todd

farmacia
3 Aug 2010 10:08:57 GMT
3 Aug 2010 10:08:57 GMT

Hi,

The snippets are new-clean-Eclipse-ZK-Project with nothing more inside as the above code.
I just removed the label which says which version so you have and placed the Calendars Code inside (Of course I placed the the Calendars JAR inside the Project)

I provided a small TestProject source and Screenshots under Error.tar.gz in the Google-Code Issue List

http://code.google.com/p/zkcalendar/issues/detail?id=34

The Screenshots are showing JS Errors. I couldn't provide the Screenshots here so I thought it would be nice for the developers to have something in there issue list.
I hope someone comes up with an solution.

Farmacia