New Features of ZK 5.0.8"

From Documentation
Line 34: Line 34:
 
===Datebox and Timebox===
 
===Datebox and Timebox===
  
By default the real format depends on the current Locale (i.e., <javadoc method="getCurrent()">org.zkoss.util.Locales</javadoc>). However, in ZK 5.0.8 you can now manually specify the locale.
+
By default the real format depends on the current Locale (i.e., <javadoc method="getCurrent()">org.zkoss.util.Locales</javadoc>). However, developers can now manually specify the locale.
  
 
<source lang="xml">
 
<source lang="xml">
Line 43: Line 43:
 
<timebox format="long" locale="fr"/>
 
<timebox format="long" locale="fr"/>
 
</source>
 
</source>
 +
 +
This has been enhanced in 5.0.8 and the output now uses the locale's language as well as the format.
 +
 +
[[File:NewFeaturesOfZK5.0.8_Locale.png]]
  
 
For more information please see the [[ZK_Component_Reference/Input/Datebox | Datebox]] and [[ZK_Component_Reference/Input/Timebox | Timebox]] documentation.
 
For more information please see the [[ZK_Component_Reference/Input/Datebox | Datebox]] and [[ZK_Component_Reference/Input/Timebox | Timebox]] documentation.

Revision as of 04:21, 29 August 2011

DocumentationSmall Talks2011AugustNew Features of ZK 5.0.8
New Features of ZK 5.0.8

Author
Timothy Clare, Technology Evangelist, Potix Corporation
Date
August 31, 2011
Version
ZK 5.0.8

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

Databinding composer instead of initiator

With ZK 5.0.8 users can avoid having to set a page initializer for the annotated databinder by defining a dedicated Composer – AnnotateDataBindingComposer. The code of AnnotateDataBindingComposer.java is simple and easy to read and understand.

public class AnnotateDataBindingComposer implements Composer, java.io.Serializable {
    protected AnnotateDataBinder _binder;
    public void doAfterCompose(Component comp) throws Exception {
        _binder = new AnnotateDataBinder(comp);
        comp.setAttribute("binder",_binder);
        _binder.loadAll();
    }
}

For more information please take a look at the associated blog.

JasperReports now upgraded to JasperReports4

ZK has upgraded the included JasperReports to JasperReports 4.

For more information on JasperReports 4 changes click here.

Locale improvements for components

Datebox and Timebox

By default the real format depends on the current Locale (i.e., Locales.getCurrent()). However, developers can now manually specify the locale.

<datebox format="medium+full" locale="de_DE"/>
<datebox format="long" locale="fr"/>

<timebox format="medium" locale="de_DE"/>
<timebox format="long" locale="fr"/>

This has been enhanced in 5.0.8 and the output now uses the locale's language as well as the format.

NewFeaturesOfZK5.0.8 Locale.png

For more information please see the Datebox and Timebox documentation.

Decimals, integers, long and double components

The Decimalbox, Intbox, Longbox, Doublebox, DoubleSpinner and Spinner have all been upgraded to enable users to specify different locales.

A method to prevent the use of zscript in a project

The Java zscript interpreter does not work well and there are suggestions that the performance of said interpreter is not good. Therefore ZK 5.0.8 introduces the ability to switch it off. This means that in a project developers can guarantee that it is not used.

This can be achieved using a system configuration property.

<system-config>
	<disable-zscript>true</disable-zscript>
</system-config>

For more information please visit our ZK Configuration Reference and ZK Developer's Reference

Allow users to specify the error-box position

A way to name the composer GenericAutowireComposer

In ZK 5.0.8 it is now possible to specify the name of the composer using an called composerName. For example,

<window apply="MyComposer">
    <custom-attributes composerName="mc"/> <!-- name the composer as mc -->

    <textbox value="${mc.title}"/>
 </window>

For more information please visit the ZK Developer Reference.

Comments



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