0

ComboBox DropDown is blank

asked 2010-12-14 00:09:27 +0800

sandeepa gravatar image sandeepa
93 2

updated 2010-12-14 00:11:45 +0800

ComboBox DropDown is blank.

<?page title="Auto Generated index.zul"?>
<zk>
<window  title="State City Demo" border="normal" >
<zscript>
	<![CDATA[            
	String[] _dict = { 
		"Karnataka", "Punjab", "Kerala", 
		"Tamilnadu", "Manipur" ,
		};
	 ListModel dictModel= new SimpleListModel(_dict);
	 ]]>
</zscript>
 <grid>
    <columns>
    </columns>
    <rows>
        <row>
        <label value="State"/>
		<combobox id="state" readonly="true"  model="${dictModel}"/>
        </row>
        
    </rows>
 </grid>
</window>
</zk>

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2010-12-14 00:45:24 +0800

sandeepa gravatar image sandeepa
93 2

updated 2010-12-14 00:46:14 +0800

Solved.............
The API (ListModel , SimpleListModel ) in above example belong to older version of ZK.
And i am working on ZK version 5.0.5


So change it to

ListModelList dictModel= new ListModelList(Arrays.asList(_dict));

link publish delete flag offensive edit

answered 2011-02-24 09:21:32 +0800

yohann gravatar image yohann
57

Hi,

I'am also working on ZK version 5.0.5 and my combobox drop down is empty. I have made changes with Arrays.asList but this is not working for me.
Can you help me please ?

Thanks !

link publish delete flag offensive edit

answered 2011-02-24 10:00:05 +0800

yohann gravatar image yohann
57

Solved ! sorry, i haven't seen that we must use ListModelList instead of SimpleListModel.

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2010-12-14 00:09:27 +0800

Seen: 317 times

Last updated: Feb 24 '11

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