Robbie Cheng is the author of the book "ZK: Ajax without the Javascript Framework". He is a software developer at Potix Corporation, and the principle developer of ZK Android and ZK Forum. Recently, he become a ZK evangelist, and has been invited to give speeches at Google Developer Day and Mobile Monday, as well as published many articles on the Internet. Robbie has posted 19 posts at DZone. View Full User Profile

Case Study: Experience of Building AJAX with ZK

11.27.2008
| 4529 views |
  • submit to reddit

DBL started using ZK for all new web-development in early 2007, and these systems are now in use by clients in various private sector firms.

BACKGROUND

Many of DBL's clients are extremely innovative in their vision for their business and are increasingly looking to IT solutions to help support and manage new business practices. DBL needs to be able to offer rapid turnaround of new and custom features on top of its flagship products, without threatening the stability of the base products. 

THE CHALLENGE

DBL sells business systems so the core challenge is not technology – it is being able to understand often complex customer requirements in terms of data model and process flow – then rapidly build user-friendly interfaces on top of these. “We want our programmers to spend most of their time understanding the client's business, and not writing boilerplate code.” 

WHY ZK

To meet this challenge, DBL analyzed the market for a tool which could really demonstrate productivity improvements. Their final decision was ZK. Here are the three main reasons: 

  • DHTML compatibility – no need to install or maintain any browser plug-ins
  • Pure Java – means we have a consolidated skillset and avoid the complexity of DHTML
  • Define UI declaratively in XML – makes code much easier to maintain  

During evaluation, GWT, Echo2, OpenLaszlo and Flex were also considered and ZK defeated GWT in the end. Basically, ZK offers the ZUML language for declarative page layout and GWT has nothing comparable to this. In GWT developers must define the layouts by building them as object trees in a step by step way. In ZK everyone can do this whenever he wants to, but perhaps 80% of the time developers can declare the same tree in a more concise and intuitive way using the ZUML, a simple XML-based UI markup language.

One of another important factor which helped in the final decision was ZK’s extensibility. It comes with built-in integration and extension points for several popular technologies such as Spring, Google Maps, the FCKEditor online rich text editor, and DOJO. As most of people do not use all these technologies at the moment, DBL certainly plans to use some of them in the medium term and it was helpful to know that they were not shutting themselves off from them by choosing ZK.

It is also important to point out that ZK being 100% Java is a plus compared to certain other options because it means developers can build specialized components to fit ZK into the architecture at any level – all in the same general purpose programming language.

Finally, ZK's built-in Spring Integration was also a significant help.

THE VALUE

Since DBL started using ZK, the following positive progress has been noticed:

  1. Technology Splurge. Browser-Server communication is transparent and warm-up time for new team members has been reduced to about an hour for the frontend part of our applications!
  2. Development cycles. Developers spend more time talking about the system and less time talking about syntax, config file locations and technology gotchas.
  3. UI Richness. Developers can do pretty much anything he could in a Native GUI - the relevant tags and UI elements are intuitively named and well documented. It just got easier to access from the frontend! 

ABOUT DBL

Database, Lda (DBL) was founded in 1999 to sell IT hardware and services into Mozambique's economy as it began a period of rapid growth. In 2004 DBL produced its first software product, a management system for the wholesale sector, and in 2005 restructured to focus primarily on software and services. Its software is now used by dozens of corporate clients in the wholesale, retail and import/export sectors.  

0
Average: 3 (1 vote)
Published at DZone with permission of its author, Robbie Cheng.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Eric Rotick replied on Sun, 2008/11/30 - 9:10am

Could you give more detail on why ZK won over Echo2? You mention that ZK is 100% Java but ZUML is not really Java. Echo, on the other hand, is 100% Java.

I am not necessarily fighting the case for Echo but we performed pretty much the same evaluation as yourself and, even using your metrics, Echo was the winner.

 

Tranquiliser Gt replied on Sun, 2008/12/07 - 5:26am

ZK is the best framework ever and beats all other competitors with bare hands. But I won't use it.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.