-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I would like to include listbox in the listbox, but seems not work in my code. could you give me a hand. Thank you very much.
List nestedList = new ArrayList();
List beanObjectList = new ArrayList();
for(int j=0; j<10; j++){
nestedList.add(j);
}
beanObject.setA("A");
beanObject.setB("B");
beanObject.setCList(nestedList);
beanObjectList.add(beanObject);
firstListbox.setModel(new ListModelList<firstObject>(beanObjectList));
<listbox id="firstListbox">
<listhead menupopup="auto">
...
</listhead>
<template name="model">
<listitem>
<listcell label="${each.a}"></listcell>
<listcell label="${each.b}"></listcell>
<listcell>
<listbox model="${each.cList}">
<template name="model">
<listitem label="${each}"/>
</template>
</listbox>
</listcell>
</listitem>
</template>
</listbox>
See Here there is a example how can you achieve this .
Asked: 2013-08-16 14:07:23 +0800
Seen: 8 times
Last updated: Aug 18 '13