Data Binding

From Documentation
Revision as of 03:12, 9 February 2012 by Hawk (talk | contribs)

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.