New Features of ZK 5.0.7"

From Documentation
Line 13: Line 13:
  
 
==i18n improvements==
 
==i18n improvements==
 +
 +
ZK 5.0.7 has introduced two improvements, an easy way to access i18n labels from EL and an easier way to specify multiple property files for i18n labels.
 +
 +
===Access i18n labels from EL===
 +
 +
In ZK 5.0.7, an implicit object called [[ZUML Reference/EL Expressions/Implicit Objects/labels|labels]] has been introduced, enabling developers direct access to internationalization labels. For example, assume you have a label named app.title, you can access it as follows:
 +
 +
<source lang="xml">
 +
<window title="${labels.app.title}">
 +
...
 +
</window>
 +
</source>
 +
 +
The [[ZUML Reference/EL Expressions/Implicit Objects/labels|labels]] object is a map (<tt>java.util.Map</tt>), so you can access the label directly by using <tt>labels.''whatever''</tt> in an EL expression. Moreover, as shown above, you can access the label even if a key is named as ''aa''.''bb''.''cc'' (a string containing dot), such as <code>app.title</code> in the above example.
 +
 +
For more information please see [[ZK Developer's Reference/Internationalization/Labels#Access Internationalization Labels In ZUML | ZK's Developer's Reference]].
 +
 +
===Specify multiple property files for i18n labels===
  
 
==Datebox/timebox allows different formats and locales==
 
==Datebox/timebox allows different formats and locales==

Revision as of 01:31, 10 May 2011

DocumentationSmall Talks2011MayNew Features of ZK 5.0.7
New Features of ZK 5.0.7

Author
Timothy Clare, Technology Evangelist, Potix Corporation
Date
May 11, 2011
Version
ZK 5.0.7

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


iPad improvements

ZK 5.0.7 brings with it improved support for the iPad's browser now supporting drag & drop functionality and the iPad's double click event on a widget by widget basis.

i18n improvements

ZK 5.0.7 has introduced two improvements, an easy way to access i18n labels from EL and an easier way to specify multiple property files for i18n labels.

Access i18n labels from EL

In ZK 5.0.7, an implicit object called labels has been introduced, enabling developers direct access to internationalization labels. For example, assume you have a label named app.title, you can access it as follows:

<window title="${labels.app.title}">
...
</window>

The labels object is a map (java.util.Map), so you can access the label directly by using labels.whatever in an EL expression. Moreover, as shown above, you can access the label even if a key is named as aa.bb.cc (a string containing dot), such as app.title in the above example.

For more information please see ZK's Developer's Reference.

Specify multiple property files for i18n labels

Datebox/timebox allows different formats and locales

Enhanced Tree sorting

Listbox sorts model based on the current state

Listbox supports Listgroup selection

Developer can now specify an empty message for Grid/Listbox

Specify another zk.xml

Not serializable and ignored objects now logged

Client-side smartUpdate now disabled by default

Menuitem supports auto disable

Comments



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