ZK (framework) explained

ZK
Latest Release Version:9.6.0
Latest Release Date:[1]
Operating System:Cross-platform (JVM)
Genre:Ajax Web Framework
License:LGPL / ZOL / Commercial[2]

ZK is an open-source Ajax Web application framework, written in Java,[3] [4] [5] 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,[6] 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.

ZK does not use the standard web request-response mechanism and does not send form fields to the server by making a GET request with query parameters or a 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.

Features

Differences from XUL

System requirements

Prerequisites of programming skills

Required

Optional

ZUML

ZUML (ZK User Interface Markup Language) is a markup language for rich user interfaces definition.

Client-side technologies

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[16] architecture is introduced. Developers are allowed to access the client-side widgets directly if they want to. ZK Client Engine is based on jQuery.[17] Technically you can use jQuery-compliant libraries and widgets.

See also

Notes and References

  1. Web site: ZK 9.6.0 release notes.
  2. ZK 3 and older versions are licensed under GPL.
  3. Book: Chen , Henri . ZK - Ajax without JavaScript . Apress . 2008 . 978-1-59059-901-3 . 125.
  4. Book: Staeuble , Markus . ZK Developer's Guide . Packt Publishing . 2008 . 978-1-84719-200-4 . 184.
  5. Web site: Van der Schyff . Andre . A look at MVC frameworks . 2009-03-31 . ITWeb . MVC frameworks provide limited functionality when compared to ZK, Echo and other Java Web frameworks. . 2009-04-14 . 2009-08-22 . https://web.archive.org/web/20090822231812/http://www.itweb.co.za/sections/industryinsight/software/vanderschyff090331.asp?S=Software&A=SFT&O=google . dead .
  6. Web site: ZK Explorer . Zkoss.org . 2010-08-25.
  7. Web site: Massey. Simon. Implementing event-driven GUI patterns using the ZK Java AJAX framework. www.ibm.com/. IBM. 5 July 2014.
  8. Web site: ZK - ZK Developer's Reference/MVC - Documentation . Books.zkoss.org . 2014-01-27 . 2014-03-02.
  9. Web site: ZK - Small Talks/2011/November/Hello ZK MVVM - Documentation . Books.zkoss.org . 2014-03-02.
  10. Web site: ZK - Small Talks/2011/November/MVVM in ZK 6 - Design your first MVVM page - Documentation . Books.zkoss.org . 2014-03-02.
  11. Web site: Lightweight Scripting for Java . BeanShell . 2014-03-02.
  12. Web site: Rhino | MDN . Mozilla.org . 2012-08-09 . 2014-03-02.
  13. Web site: Home — JRuby.org . dead . Jruby.codehaus.org . 2014-02-25 . 2014-03-02 . https://web.archive.org/web/20090830214445/http://jruby.codehaus.org/ . August 30, 2009 .
  14. Web site: Jython : Homepage . Jython.org . 2014-03-02 . 2009-05-16 . https://web.archive.org/web/20090516192515/http://www.jython.org/Project/ . dead .
  15. Web site: Groovy - Home . Groovy.codehaus.org . dead . 2014-02-18 . 2014-03-02 . https://web.archive.org/web/20140302111159/http://groovy.codehaus.org/ . March 2, 2014 .
  16. Web site: Clare . Timothy . Server+client Fusion: An Architectural Proposal . 2010-02-09 . Dr. Dobb's . A good framework architecture is flexible empowering developers and architects to implement their applications in a smart and elegant manner..
  17. Web site: Mahajan . Sachin . Enhance Ajax development with a fusion of jQuery, ZK, and Java code . 2010-10-19 . IBM developerWorks . The marriage between server-side Java code and jQuery can help you tackle the challenges in enterprise Ajax application development..