HOME

TheInfoList



OR:

ZK is an open-source
Ajax Ajax may refer to: Greek mythology and tragedy * Ajax the Great, a Greek mythological hero, son of King Telamon and Periboea * Ajax the Lesser, a Greek mythological hero, son of Oileus, the king of Locris * Ajax (play), ''Ajax'' (play), by the an ...
Web application framework A web framework (WF) or web application framework (WAF) is a software framework that is designed to support the development of web applications including web services, web resources, and web APIs. Web frameworks provide a standard way to build and ...
, written in
Java Java is one of the Greater Sunda Islands in Indonesia. It is bordered by the Indian Ocean to the south and the Java Sea (a part of Pacific Ocean) to the north. With a population of 156.9 million people (including Madura) in mid 2024, proje ...
, that enables creation of
graphical user interface A graphical user interface, or GUI, is a form of user interface that allows user (computing), users to human–computer interaction, interact with electronic devices through Graphics, graphical icon (computing), icons and visual indicators such ...
s for
Web application A web application (or web app) is application software that is created with web technologies and runs via a web browser. Web applications emerged during the late 1990s and allowed for the server to dynamically build a response to the request, ...
s with little required programming knowledge. The core of ZK consists of an
Ajax Ajax may refer to: Greek mythology and tragedy * Ajax the Great, a Greek mythological hero, son of King Telamon and Periboea * Ajax the Lesser, a Greek mythological hero, son of Oileus, the king of Locris * Ajax (play), ''Ajax'' (play), by the an ...
-based event-driven mechanism, over 123 XUL and 83
XHTML Extensible HyperText Markup Language (XHTML) is part of the family of XML markup languages which mirrors or extends versions of the widely used HyperText Markup Language (HTML), the language in which Web pages are formulated. While HTML, pr ...
-based components, and a mark-up language for designing user interfaces. Programmers design their application pages in
feature-rich A feature is "a prominent or distinctive user-visible aspect, quality, or characteristic of a software system or systems", as defined by Kang et al. At the implementation level, "it is a structure that extends and modifies the structure of a give ...
XUL/
XHTML Extensible HyperText Markup Language (XHTML) is part of the family of XML markup languages which mirrors or extends versions of the widely used HyperText Markup Language (HTML), the language in which Web pages are formulated. While HTML, pr ...
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 Post, POST, or posting may refer to: Postal services * Mail, the postal system, especially in Commonwealth of Nations countries **An Post, the Irish national postal service **Canada Post, Canadian postal service **Deutsche Post, German postal s ...
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 JSON (JavaScript Object Notation, pronounced or ) is an open standard file format and electronic data interchange, data interchange format that uses Human-readable medium and data, human-readable text to store and transmit data objects consi ...
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. * ZUML is designed for non-programmer developers to design user interfaces intuitively. * ZUML allows developers to meld different markup languages, such as
Mozilla Mozilla is a free software community founded in 1998 by members of Netscape. The Mozilla community uses, develops, publishes and supports Mozilla products, thereby promoting free software and open standards. The community is supported institution ...
XUL language and XHTML, seamlessly into the same page. * ZUML allows developers to embed scripts in pure Java language (interpreted by
BeanShell BeanShell is a small, free, embeddable Java source interpreter with object scripting language features, written in Java. It runs in the Java Runtime Environment (JRE), dynamically executes standard Java syntax and extends it with common scripting c ...
) and use EL expressions to manipulate the components and access data.


Features

* Simply Java. ZK is renowned for its "Ajax without JavaScript" approach, enabling developers to build rich web applications transparently without any knowledge of Ajax and JavaScript. * Responsive design themes along with Bootstrap support * HTML 5 and CSS 3 support * Over 100 Ajax components offer UI designers a variety of feature rich components to meet the demands of enterprise Ajax applications. * ZUML makes the design of rich user interfaces similar to authoring HTML pages. ZUML is a variant of XUL inheriting all features available to XML, and separates the UI definition from the run-time logic. * Event-driven component-based model (similar to desktop programming models) supporting multiple event driven GUI design patterns. * Support for Model-View-Controller (MVC), Model-View-Presenter and Model-View-ViewModel (MVVM) design patterns * Databinding capability via in-ZUML-page annotations that automates CRUD and state synchronization between UI view and the data and POJO. * Application components, such as spreadsheet, pivot table, and calendar. * Embedding scripting support with Java (Beanshell). This is an important benefit as you can use a unified programming language for both user interface and backend programming. Optional support for other serverside Java scripting in other languages such as JavaScript (Rhino), Ruby (JRuby), Python (Jython) and Groovy. * Support for integrating with existing web frameworks via a JSP custom tag library, JSF support, Portlet, and a Servlet Filter. Has support for Spring and Hibernate. * Extensible in that programmers can create new custom UI controls. Groups of controls can be re-used as a macro component. * Extensive charting with ZK Charts


Differences from XUL

* ZK is a server side framework which emits HTML and thus does not depend on client side presence of
Gecko Geckos are small, mostly carnivorous lizards that have a wide distribution, found on every continent except Antarctica. Belonging to the infraorder Gekkota, geckos are found in warm climates. They range from . Geckos are unique among lizards ...
making it portable to any browser. ZK takes ZUML (xul and xhtml) serverside pages as input and outputs dhtml for the browser. * ZK processes user interface logic on the server in Java. This increases choice in the scripting engines and application libraries that can be used to create logic. Presentation effects can be delegated to the browser using the Client-side Actions feature to reduce server load for dhtml effects. Running the application logic on the server in a single application container reduces the amount of cross browser and browser version testing when compared to extensively programming the DOM at the browser. * While ZK and XUL have an overlapping subset of components, ZK has its own unique component sets. The component library can be extended with custom components. Macro components can be defined that are composites of components. * ZK provides serverside databinding annotations to declaratively bind UI components to serverside data. *
Look and Feel In software design, the look and feel of a graphical user interface comprises aspects of its design, including elements such as colors, shapes, layout, and typefaces (the "look"), as well as the behavior of dynamic elements such as buttons, boxes ...
differences.


System requirements

* JRE version 1.5 or later * A Web server supporting
Servlet A Jakarta Servlet, formerly Java Servlet is a Java software component that extends the capabilities of a server. Although servlets can respond to many types of requests, they most commonly implement web containers for hosting web applicat ...
2.3 or later


Prerequisites of programming skills


Required

* Basic knowledge of Java or a Java scripting engine language such as
Groovy ''Groovy'' (or, less commonly, ''groovie'' or ''groovey'') is a slang colloquialism popular during the 1960s and 1970s. It is roughly synonymous with words such as "excellent", "fashionable", or "amazing", depending on context. History The word ...
,
Rhino A rhinoceros ( ; ; ; : rhinoceros or rhinoceroses), commonly abbreviated to rhino, is a member of any of the five extant taxon, extant species (or numerous extinct species) of odd-toed ungulates (perissodactyls) in the family (biology), famil ...
(Java JavaScript),
JRuby JRuby is an implementation of the Ruby programming language atop the Java Virtual Machine, written largely in Java. It is free software released under a three-way EPL/ GPL/LGPL license. JRuby is tightly integrated with Java to allow the embeddi ...
(Java Ruby) or
Jython Jython is an implementation of the Python (programming language), Python programming language designed to run on the Java (programming language), Java platform. It was known as JPython until 1999. Overview Jython programs can import and use any ...
(Java Python) * Basic knowledge of
HTML Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It defines the content and structure of web content. It is often assisted by technologies such as Cascading Style Sheets ( ...
and XUL


Optional

* Knowledge of a scripting language to write the glue logic (running on the server): **
BeanShell BeanShell is a small, free, embeddable Java source interpreter with object scripting language features, written in Java. It runs in the Java Runtime Environment (JRE), dynamically executes standard Java syntax and extends it with common scripting c ...
(Java interpreter),
JavaScript JavaScript (), often abbreviated as JS, is a programming language and core technology of the World Wide Web, alongside HTML and CSS. Ninety-nine percent of websites use JavaScript on the client side for webpage behavior. Web browsers have ...
,
Groovy ''Groovy'' (or, less commonly, ''groovie'' or ''groovey'') is a slang colloquialism popular during the 1960s and 1970s. It is roughly synonymous with words such as "excellent", "fashionable", or "amazing", depending on context. History The word ...
,
Ruby Ruby is a pinkish-red-to-blood-red-colored gemstone, a variety of the mineral corundum ( aluminium oxide). Ruby is one of the most popular traditional jewelry gems and is very durable. Other varieties of gem-quality corundum are called sapph ...
, Scala and Python * Object Oriented Programming * Servlet Programming * Ajax *
JavaScript JavaScript (), often abbreviated as JS, is a programming language and core technology of the World Wide Web, alongside HTML and CSS. Ninety-nine percent of websites use JavaScript on the client side for webpage behavior. Web browsers have ...
(client-sided) * Declarative Databindings * JSTL style
Expression Language An expression language is a computer language A computer language is a formal language used to communicate with a computer. Types of computer languages include: * Software construction#Construction languages, Construction language – all fo ...


ZUML

ZUML (ZK User Interface Markup Language) is a markup language for rich user interfaces definition. * ZUML is designed for non-programmers to design user interfaces efficiently with the ZUML markup * ZUML allows developer to meld different markup languages, such as
Mozilla Mozilla is a free software community founded in 1998 by members of Netscape. The Mozilla community uses, develops, publishes and supports Mozilla products, thereby promoting free software and open standards. The community is supported institution ...
XUL language and XHTML, seamlessly into the same page. * ZUML allows developers to embed script in pure Java language (interpreted by
BeanShell BeanShell is a small, free, embeddable Java source interpreter with object scripting language features, written in Java. It runs in the Java Runtime Environment (JRE), dynamically executes standard Java syntax and extends it with common scripting c ...
) and use EL expressions to manipulate the components and access data. * ZUML is supported by ZK. * Official Documentation : ZUML Reference


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 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.


Add-Ons


See also

*
List of rich web application frameworks : ''For a list of mobile only frameworks see Multiple phone web based application framework''. Below is a list of rich web application frameworks: {, class="wikitable sortable" style="width: auto; table-layout: fixed; text-align: center;" , - s ...
*
Comparison of JavaScript frameworks This is a comparison of web frameworks for front-end web development that are reliant on JavaScript code for their behavior. General information High-level framework comparison JavaScript-based web application frameworks, such ...
*
List of Ajax frameworks This is a list of notable Ajax frameworks, used for creating web applications with a dynamic link between the client and the server. Some of the frameworks are JavaScript compilers, for generating JavaScript and Ajax that runs in the web browser cl ...
* List of widget toolkits based on JavaScript


References


External links

{{DEFAULTSORT:Zk (Framework) Java (programming language) libraries Java platform User interface markup languages Web frameworks Ajax (programming) Rich web application frameworks Java enterprise platform