AJAX Event Calendar for Java and jQuery Tutorial (Open-Source)

Simple Java and jQuery web application with an AJAX event calendar.
Dec 3, 2012


AJAX Event Calendar for Java and jQuery

This tutorial shows how to create an AJAX event calendar in a Java web application. It supports drag and drop operations (event creating, moving, resizing).

It uses the open-source DayPilot Lite for Java widget:


The sample J2EE application (available as a .war file and as source) is tested with Tomcat 6 and Tomcat 7 and requires JRE 1.5 or higher.


  • jQuery plugin API
  • Drag & drop event creating
  • Drag & drop event moving
  • Drag & drop event resizing
  • Week view
  • Java source code

The client-side (JavaScript) configuration uses the jQuery plugin and fits in 9 lines:

$(document).ready(function() {
  var dpc = $("#dpc").daypilotCalendar({
    backendUrl : '${pageContext.request.contextPath}/dpc',
    viewType : "Week",
    eventMoveHandling : "CallBack",
    eventResizeHandling: "CallBack",
    timeRangeSelectedHandling : "CallBack"