Data Binding"

From Documentation
Line 1: Line 1:
 
{{ZKComponentReferencePageHeader}}
 
{{ZKComponentReferencePageHeader}}
  
 
+
Data binding synchronizes data between View and ViewModel according to component definition's annotation. The annotation specifies when to save (or load) which attribute, how to convert, validate and render the data. It can be found in <tt> metainfo\zk\lang-addon.xml </tt> of zkbind.jar. Please refer to [[ZK Client-side Reference/Language Definition]] about how to configure language definition and its addon.  
 
 
look for file: <tt> metainfo\zk\lang-addon.xml </tt> in zkbind.jar.
 
  
  
Line 31: Line 29:
 
|-
 
|-
 
|}
 
|}
 +
 +
 +
 +
=Version History=
 +
{{LastUpdated}}
 +
{| border='1px' | width="100%"
 +
! Version !! Date !! Content
 +
|-
 +
| &nbsp;
 +
| &nbsp;
 +
| &nbsp;
 +
|}
 +
  
  
 
{{ZKComponentReferencePageFooter}}
 
{{ZKComponentReferencePageFooter}}

Revision as of 03:12, 9 February 2012

Data binding synchronizes data between View and ViewModel according to component definition's annotation. The annotation specifies when to save (or load) which attribute, how to convert, validate and render the data. It can be found in metainfo\zk\lang-addon.xml of zkbind.jar. Please refer to ZK Client-side Reference/Language Definition about how to configure language definition and its addon.


ZKBIND zkbind system's annotation name

Attribute Name
Description
 ACCESS   Access privilege. The value can be "both", "save", "load"(default value); default value is used if not specify.
 CONVERTER   System converter for special properties. e.g. SelectedItem in listbox. see ListboxSelectedItemConverter
 VALIDATOR   System validator for special properties.
 SAVE_EVENT Save trigger event. It's meaningful only when ACCESS attribute is "both" or "save".
 LOAD_EVENT
 LOAD_REPLACEMENT
 LOAD_TYPE
 SAVE_REPLACEMENT
 RENDERER


Version History

Last Update : 2012/02/09


Version Date Content
     




Last Update : 2012/02/09

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