Revision history [back]

click to hide/show revision 1
initial version

asked 2013-11-19 19:11:00 +0800

willkara gravatar image willkara

How to add zCalendar events on startup through java code.

So I have successfully implemented a basic calendar object in a Java WebApp. What my plan is, is to take some other data from an outside source and populate the calendar with those events.

So what I need to do is populate the calendar with event data on server startup. I want to be able to do this through all Java code. I used the ZKCalendarEssentials walkthrough to set it up.

Once I am able to add events on server startup through Java, I'll be in the clear. I am using tomcat 7 as my server.

How to add zCalendar events on startup through java code.

So I have successfully implemented a basic calendar object in a Java WebApp. What my plan is, is to take some other data from an outside source and populate the calendar with those events.

So what I need to do is populate the calendar with event data on server startup. I want to be able to do this through all Java code. I used the ZKCalendarEssentials walkthrough to set it up.

Once I am able to add events on server startup through Java, I'll be in the clear. I am using tomcat 7 as my server.

Why can't I add comments to an answer?

I had to put this as an edit because there is not 'comments' field under an answer. So far, I am just trying to get a simple Proof of Concept working so no MVC or MVVM yet. What my goal is, I want to be able to make a class that extends the ContextListener for Java/Tomcat so that it runs on startup and loads up the event data. After that, the calendar would add this data on its own startup.

I can't add links yet so it's books.zkoss.org/wiki/ + ZKDeveloper'sReference/MVC/Controller/Composer

^This is what I found for some ideas^

Would you be able to give me an example of setting up the MVC or MVVM for the calendar? It is simple enough for me to configure the code to run on Tomcat Startup, but I am stuck on adding events to the calendar when the page loads through Java. Thanks!

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