-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi All,
I'm using ZK 5.0 . I have been using Data binding feature with the latest version of ZK with a simple object as of now. Suppose my POJO has one more Java Object inside that object. Then, how do we show the value of the attributes of that Object. Eg : Task object has a selectedTaskType of TaskType object as an attribute. Here how do i show the value present inside TaskType Objects.
Is this possible ?
<listbox id="dataBox" width="700px"> <listhead> <listheader label="Task ID" width="100px"/> <listheader label="Date Of Task" width="100px"/> <listheader label="Task Desc" width="200px"/> <listheader label="Task Type ID" width="100px"/> <listheader label="Task Type Name" width="100px"/> <listheader label="Total Effort" width="100px"/> </listhead> <listitem self="@{each='Task'}" value="@{Task}"> <listcell label="@{Task.taskId}" /> <listcell label="@{Task.DateOfTask}" /> <listcell label="@{Task.TaskDescription}" /> <listcell label="@{Task.SelectedTaskType.TaskTypeID}" /> <listcell label="@{Task.SelectedTaskType.TaskTypeName}" /> <listcell label="@{Task.TotalEffort}" /> </listitem> </listbox>
sure thing: the only requirement is to expose your instance of TaskType with a proper getter method in Task.
Asked: 2011-11-15 05:11:03 +0800
Seen: 108 times
Last updated: Nov 15 '11