Activates Data Binding Manager"
From Documentation
m |
m |
||
Line 4: | Line 4: | ||
{{ZKDevelopersGuidePageHeader}} | {{ZKDevelopersGuidePageHeader}} | ||
− | + | Activates Data Binding Manager by defining the page Initializer at the top of the page. | |
− | + | <source lang="xml" > | |
− | + | <?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" ?> | |
− | <source lang=" | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</source> | </source> | ||
− | + | This initiator class do following things: | |
− | < | + | # Creates an <tt>AnnotateDataBinder</tt> instance. |
− | < | + | # Sets the <tt>AnnotateDataBinder</tt> instance as a variable with the name "''binder''" stored in the component as specified in <tt>arg0</tt> "component-path".(if arg0 is not specified, use <tt>Page</tt> instead.) |
− | + | # Calls <tt>DataBinder.loadAll()</tt> to initiate all UI components from the associated data source. | |
− | |||
− | |||
− | |||
− | |||
− | </ | ||
− | </source | ||
=Version History= | =Version History= |
Revision as of 04:49, 18 January 2011
This documentation is for an older version of ZK. For the latest one, please click here.
This documentation is for an older version of ZK. For the latest one, please click here.
Activates Data Binding Manager by defining the page Initializer at the top of the page.
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" ?>
This initiator class do following things:
- Creates an AnnotateDataBinder instance.
- Sets the AnnotateDataBinder instance as a variable with the name "binder" stored in the component as specified in arg0 "component-path".(if arg0 is not specified, use Page instead.)
- Calls DataBinder.loadAll() to initiate all UI components from the associated data source.
Version History
Version | Date | Content |
---|---|---|