search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Does the "DayPilot Pro for Java" license contains the JavaScript Source Code?

Asked by Florian
3 years ago.

Hi,

we are currently evaluating the use of DayPilot for one of our projects. We are currently not sure if we want to use the Java or JavaScript version. Does the pro-license for Java also includes the entire JavaScript source code (non minified), so that we could implement a client-side version if needed?

Thanks in advance and best regards

Florian

Answer posted by Dan Letecky [DayPilot]
3 years ago.

Yes, but I recommend using the JavaScript version:

1. The Java version is only licensed for use with the integrated Java backend. This make the JavaScript version more future-proof.
2. The JavaScript version has a much faster release cycle.

Comment posted by Florian
3 years ago.

Thanks for your reply! The project is based on the Vaadin Framework and we thought that maybe we could use the Java-Version to make some things easier for us. On the other hand i would assume that we'll have more control of the component if we're developing a custom module (GWT or JavaScript) for Vaadin which will handle the communication between the front- and backend. Am i correct? Thanks again!

Comment posted by Dan Letecky [DayPilot]
3 years ago.

The JavaScript version exposes a set of events that let you handle the user input. Typically, the event handler will invoke a server-side endpoint using an ajax call.

These days, most Java frameworks make it really easy to create custom JSON-based web services API. And that's all you need on the server side - a couple of REST endpoints that load and update the data.

The Java version of DayPilot started back when most of the work was done on the server side. This has changed and now most people are comfortable with client-side development.

When you use the JavaScript client and custom server-side backend you get better control over what and when is being sent over the network. There is also no additional dependency on the server side.

You can also take a look at the following Scheduler tutorials:

https://code.daypilot.org/48990/machine-production-job-scheduling-web-application-spring-java
https://code.daypilot.org/70997/using-javascript-html5-scheduler-in-spring-boot-java

They show how to use the JavaScript version with a Spring backend. You can use the same approach with other frameworks as well.

Comment posted by Florian
3 years ago.

Thanks Dan - sounds good! :)

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.