New Features of ZK 5.0.8"
From Documentation
Tmillsclare (talk | contribs) m (Created page with "{{Template:Smalltalk_Author| |author=Timothy Clare, Technology Evangelist, Potix Corporation |date=August 31, 2011 |version=ZK 5.0.8 }} ZK 5.0.8 is a maintenance release focusin...") |
Tmillsclare (talk | contribs) |
||
Line 9: | Line 9: | ||
==Databinding composer instead of initiator== | ==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. | ||
+ | |||
+ | <source lang="java" > | ||
+ | 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(); | ||
+ | } | ||
+ | } | ||
+ | </source> | ||
+ | |||
+ | For more information please take a look at the [http://blog.zkoss.org/index.php/2011/08/11/databinding-composer/ associated blog]. | ||
==JasperReports now upgraded to JasperReports4== | ==JasperReports now upgraded to JasperReports4== |
Revision as of 03:11, 29 August 2011
Author
Timothy Clare, Technology Evangelist, Potix Corporation
Timothy Clare, Technology Evangelist, Potix Corporation
Date
August 31, 2011
August 31, 2011
Version
ZK 5.0.8
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
Local improvements for components
A method to prevent the use of zscript in a project
Comments
Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License. |