Getting Started with ZK Calendar"

From Documentation
Line 54: Line 54:
 
Congratulations! That is all it takes to embed ZK Calendar within your ZK application.
 
Congratulations! That is all it takes to embed ZK Calendar within your ZK application.
  
= Demo Project=
+
= Example Source Project=
You can start up with [https://github.com/zkoss/zkcalendar/tree/master/essentials the example project].
+
You can find all example codes mentioned in this book at [https://github.com/zkoss/zkcalendar/tree/master/essentials the example project].
  
 
{{ZKCalendarEssentialsPageFooter}}
 
{{ZKCalendarEssentialsPageFooter}}

Revision as of 10:51, 2 February 2021


DocumentationZK Calendar EssentialsGetting Started with ZK Calendar
Getting Started with ZK Calendar




Here we introduce the required setup for a web application to use ZK Calendar.


License

ZK Calendar is GPL/Commercial dual-licensed.

Setup by Maven

We recommend managing your project with Maven. First, you check the available version in ZK Maven CE repository. Then, you can adopt ZK Calendar easily by simply adding a dependency like the following example. [1]


<dependency>
	<groupId>org.zkoss.calendar</groupId>
	<artifactId>calendar</artifactId>
	<version>${calendar.version}</version>
</dependency>



  1. If you didn't setup zk maven repository yet, you have to setup zk maven repository.

Manually Installing the ZK Calendar JAR

  1. Downloaded ZK CE 7.0.3 or above
  2. Downloaded ZK Calendar Binary
  3. Extract those 2 zip files, include all JAR files by putting them into your project's /WEB-INF/lib

Depending on your IDE the steps will differ, however, the most important part is both ZK Calendar and ZK’s JAR files are included in your project's classpath. The easiest way to create a compatible project is to use ZK Studio and then include calendar.jar as a library.

A Very Basic Application

After setup, we can create an index.zul with the content below to verify the setup works or not.

<zk>
    <calendars/>
</zk>


This gives you the very first ZK Calendar application. When a server starts, navigate to index.zul and the following page should be displayed.

ZKCalEss Simple calendar application.png


Congratulations! That is all it takes to embed ZK Calendar within your ZK application.

Example Source Project

You can find all example codes mentioned in this book at the example project.


The example project is at Github


Last Update : 2021/02/02

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.