ZK (framework)


ZK is an open-source Ajax Web application framework, written in Java, that enables creation of graphical user interfaces for Web applications with little required programming knowledge.
The core of ZK consists of an Ajax-based event-driven mechanism, over 123 XUL and 83 XHTML-based components, and a mark-up language for designing user interfaces. Programmers design their application pages in feature-rich XUL/XHTML components, and manipulate them upon events triggered by end user's activity. It is similar to the programming model found in desktop GUI-based applications.
ZK uses a server-centric approach in which the content synchronization of components and the event pipe-lining between clients and servers are automatically done by the engine, and Ajax plumbing codes are completely transparent to web application developers. Therefore, the end users get the similar engaged interactivity and responsiveness as a desktop application, while programmers' development retains a similar simplicity to that of desktop applications.
It's important to note that ZK does not use the standard web request <=> response mechanism and DOES NOT send form fields to the server using GET + query parameters or one POST request. Instead, AJAX requests are sent to the server to update the internal state of each screen widget. At the browser, ZK only downloads a JSON description of the web page and uses a client renderer to turn that into a UI. It's quite efficient and under closer inspection, does not download everything at once. A look at the traffic between client and the server reveals several requests going back and forth between client and browser until the page rendering eventually completes.
The optional client-side customization allows the developer to leverage the client-side resources with the so-called server+client fusion, for customization and to reduce the Ajax traffic.
In addition to component-based programming in a manner similar to Swing, ZK supports a mark-up language for rich user interface definition called ZUML.
Released on Nov. 7, 2018, ZK 8.6 is a major update that brings users richer experiences than ever! 10+ new components and molds are added including new input controls such as Rating, Signature and Switch Toggle, and multimedia widgets such as Video, Camera and Barcode.
A new iceblue_compact theme is also made available for users to upgrade their existing ZK projects to a brand new look and feel without having to do coding.

Differences from XUL

Required

ZUML is a markup language for rich user interfaces definition.
ZK is a server-centric framework. Technically you don't need to know about the implementation at the client side. It is how ZK Mobile running on Java Mobile VM is done.
Since ZK 5.0, the so-called Server+client Fusion architecture is introduced. Developers are allowed to access the client-side widgets directly if they want to. ZK Client Engine is based on jQuery. Technically you can use jQuery-compliant libraries and widgets.

ZK Add-Ons

ZK Charts

Provides a complete API which makes visualization of your data exceptionally easy. The intuitive API allows you to present your server-side data on the client as ZK Charts handles the client-server of data for you transparently.
ZK Pivottable

An Ajax data summarization component, which takes raw data from a flat table and organizes them by desired categories arranged on columns and rows, enabling developers to take advantage of a ready made component for demonstrating complex sets of data online.
ZK Spreadsheet

An online collaboration for multiple users that allows user to control or configure Web spreadsheet with pure Java and seamlessly integrate Java EE and other back-end services.