New Features of ZK 5.0.6

From Documentation
DocumentationSmall Talks2011FebruaryNew Features of ZK 5.0.6
New Features of ZK 5.0.6

Author
Timothy Clare, Technology Evangelist, Potix Corporation
Date
February 23, 2010
Version
ZK 5.0.6

ZK 5.0.6 is a maintenance release focusing on fixing bugs and releasing new improved features for ZK components.

Customize effects when showing and hiding a widget

Using ZK 5.0.6 it is now possible to apply client-side actions to widgets which descend from the class HtmlBasedComponent using the action property. This feature enables developers to control actions without the need for JavaScript.

The syntax for actions is as follows:

action="action-name1: effect1; action-name2: effect2"

The following example demonstrates how to set the action of a window to slide down.

<zk>
	<button label="Show a modal window" onClick="wnd.doModal()"/>
	<window id="wnd" title="Modal" border="normal" window="300px"
	 action="show: slideDown" visible="false">
		This is a modal window.
	</window>
</zk>

For more information please refer to the ZK_Developer's_Reference/UI_Patterns/Actions_and_Effects.

Specify the application's name in zk.xml

http://books.zkoss.org/wiki/ZK_Configuration_Reference/zk.xml/The_Library_Properties/org.zkoss.zk.ui.WebApp.name

The Doublespinner component

Intercepting document-level key events

http://books.zkoss.org/wiki/ZK_Developer%27s_Reference/UI_Patterns/Keystroke_Handling#Document-level_Keystrokes

Round mold for Textbox, Decimalbox, Intbox, Longbox and Treemodel

Simplified Tree Model

+ org.zkoss.zul.TreeModel is simplified: getPath is removed and getIndexOfChild http://books.zkoss.org/wiki/ZK_Developer's_Reference/MVC/Model/Tree_Model

Databinding supports GroupsModel with Listbox/Grid

Enable ignoring of wiring for zscript and xel

I made it easier to disable the wiring of zscript and xel variables: http://books.zkoss.org/wiki/ZK_Configuration_Reference/zk.xml/The_Library_Properties/org.zkoss.zk.ui.composer.autowire.zscript http://books.zkoss.org/wiki/ZK_Configuration_Reference/zk.xml/The_Library_Properties/org.zkoss.zk.ui.composer.autowire.xel

New hflex attribute options, min and span

Generating custom SEO content

Spec: http://books.zkoss.org/wiki/ZK_Configuration_Reference/zk.xml/The_Preferences/org.zkoss.zk.ui.sys.SEORenderer.class


Preference:

org.zkoss.zk.ui.sys.SEORenderer.class Default: none [since 5.0.6] It specifies the class name of the application-specific SEO renderer. A SEO renderer is used to generate application-specific SEO content that will be indexed by the search engine, but not visible to the end users.

Notice that the class must implement SEORenderer. SEORenderer.render(Page, Writer) will be invoked each time the main page of a desktop has been rendered and sent to the client.

Comments



Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.