This initiator class do following things:
- new an
AnnotateDataBinder instance.
- set the AnnotateDataBinder instance as a variable "binder" in the ID Space of the root
component as specified in arg0 "component-path".(if arg0 is not specified, use Page instead.)
- call
AnnotateDataBinder.loadAll to initiate all UI components from the associated data bean.
Put the init PI as follows:
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" [arg0="component|component-path"] [arg1="true|false"]?>
Where the arg0 is the component itself (via EL expression) or the component path that specifies the component the AnnotateDataBinder covers. If the
arg0 is not specified or set to string "page", the AnnotateDataBinder will default to cover the whole page.
Where the arg1 is used to decide whether to load default binding configuration defined in lang-addon.xml.
If the arg1 is not specified it is default to true. Note that you have to specify arg0 if you want to specify arg1.
author: Henri Chen See Also: AnnotateDataBinder |