And here is my list of imports <%@ page import="com.dhtmlx.planner.extensions.DHXExtension,com.dhtmlx.planner.*,com.dhtmlx.planner.data.*,com.dhtmlx.planner.data.DHXDataLoader.DHXDynLoadingMode, com.dhtmlx.planner.controls.*,com.dmrcom.calendar.DMREvent,java.util.*;" %>
I have also tried the following but it fails also.
DHXPlanner s = new DHXPlanner("./codebase/", DHXSkin.TERRACE);
s.extensions.add(DHXExtension.TOOLTIP);
<%@ page import="com.dhtmlx.planner.extensions.DHXExtension,com.dhtmlx.planner.*,com.dhtmlx.planner.data.*,com.dhtmlx.planner.data.DHXDataLoader.DHXDynLoadingMode, com.dhtmlx.planner.controls.*,com.dmrcom.calendar.DMREvent,java.util.*;" %>
<%!
String getPlanner(HttpServletRequest request) throws Exception {
DHXPlanner s = new DHXPlanner("./codebase/", DHXSkin.TERRACE);
s.data.enableDynamicLoading(DHXDynLoadingMode.week);
s.setSize(1400,900);
//set the date to today
Calendar cal = Calendar.getInstance();
Date date = new Date();
cal.setTime(date);
int month = cal.get(Calendar.MONTH);
int day = cal.get(Calendar.DAY_OF_MONTH);
int year = cal.get(Calendar.YEAR);
s.setInitialDate(year, month, day);
s.config.setDblClickCreate(true);
s.config.setDetailsOnDblClick(true);
s.extensions.add(DHXExtension.TOOLTIP);
DHXExternalLightboxForm box = s.lightbox.setExternalLightboxForm("./custom_editor.jsp", 400, 375);
box.setClassName("custom_lightbox");
s.extensions.add(DHXExtension.TOOLTIP);
//make the whole thing popup.
s.config.setDetailsOnCreate(true);
// use to overwrite the title and body
s.templates.setEventHeader("{text}");
s.templates.setEventBarText("testing header event");
s.templates.setEventText(" {notes}");
s.templates.setTooltipText("message {notes}");
s.load("events.jsp", DHXDataFormat.JSON);
s.data.dataprocessor.setURL("events.jsp");
return s.render();
Save doesn’t work for some server reasons. I’ve had a look at request - it doesn’t return any response, so I guess that there is some problem on server side (method saveEvent I guess)