-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have created a zul page with 2 components combo box and list box
<vbox>
<combobox model="@{fields}">
<comboitem self="@{each=fieldList}" value="@{fieldList}" label="@{fieldList.displayName} />
</combobox>
<listbox model="@{field.updateFellows}">
<listitem _var="@{fellowlist}" value="@{fellowlist}">
<listcell label="@{fellowlist.whenValue}"/>
<listcell label="@{fellowlist.fieldName}"/>
<listcell label="@{fellowlist.fieldValue}"/>
</listitem></listbox></vbox>
Here field is an object, updateFellows is collection(Set) of updateFellow objects, fields is a collection of field object.
In my controller class i set the bean as
binder.bean("field",field);
binder.bean("fields",fieldobj);
binder.loadAll();
Without below line
<comboitem self="@{each=fieldList}" value="@{fieldList}" label="@{fieldList.displayName} />
combo box will show only list of field objects. In order to show only displayName from field object i have used this line.
Without the above line, listbox values rendered properly. But when I add comboitem line, I'm getting error as "cannot find the specified bean for the expression
:@{field.updateFellows} "
Please any one help me to solve this issue.
Asked: 2015-06-14 17:52:58 +0800
Seen: 22 times
Last updated: Jun 29 '15