0

Template Listbox of listbox

asked 2013-08-16 14:07:23 +0800

MDHK gravatar image MDHK
11 1

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>
delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-08-18 06:01:57 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

See Here there is a example how can you achieve this .

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-08-16 14:07:23 +0800

Seen: 8 times

Last updated: Aug 18 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More