Displaying Information in a Grid Using Data Binding"

From Documentation
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Displaying Information in a Grid Using Data Binding==
+
{{ZKEssentialsPageHeader}}
In the section [[ZK_Essentials/Displaying_Information_Using_Grid | Displaying Information Using Grid]], we devised a renderer to associate the View (Product View Grid) with a data model. In this section, we'll look into how we could automate that process with ZK's annotated data binding mechanism.
+
 
===The Concept of Data Binding===
+
In the last section [[ZK_Essentials/Displaying_Information_Using_Grid | Displaying Information Using Grid]], we devised a renderer to associate the View (Product View Grid) with a data model. In this section, we'll look into how we could automate that process with ZK's annotated data binding mechanism.
ZK's annotated data binding mechanism involves the following players to make it work:
+
 
* Data Bean
+
 
* ZK UI Components declared in ZUL file
+
{{ZKEssentialsHeadingToc}}
* ZK's annotated data binding manager utility
+
 
In a nutshell, a bean's particular property is associated with a specified component attribute, such that whenever a value is modified, the annotated data binding manager calls the data bean's getter and setter methods to keep the values in sync between the bean and the component. <br>
+
{{ZKEssentialsPageFooter}}
The syntax for declaring this association in ZUML is
 
<source lang="xml">
 
<component-name attribute-name="@{bean-name.attribute-name}"/>
 
</source>
 
===Implementing Data Binding===
 
===Converting Bean Types for Display===
 

Latest revision as of 09:16, 19 July 2011

Stop.png This article is out of date, please refer to http://books.zkoss.org/zkessentials-book/master/ for more up to date information.


In the last section Displaying Information Using Grid, we devised a renderer to associate the View (Product View Grid) with a data model. In this section, we'll look into how we could automate that process with ZK's annotated data binding mechanism.


Subsections:




Last Update : 2011/07/19

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