-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Here is my code
ArrayList<Cat> cats = new ArrayList<Cat>();
cats.add(new Cat("Mary", "1"));
cats.add(new Cat("Mark", "2"));
ListModelList(cats, true));
int i = cmbCat.getItemCount(); // i is 0
cmbCat.setSelectedIndex(0);
cmbCat is a Combobox. After I set the model of cmbCat, I want to set the SelectedIndex always fail. How can I achieve this? And why?
Please read Default_Selection
Asked: 2020-03-01 22:35:56 +0800
Seen: 7 times
Last updated: Mar 02 '20
[Announcement] ZK 8.5.1 is now available!
Highlight new release changes/new features in demo app
How can I make a button change its image by clicking on the same button?
Problems calling function 'sec:isAnyGranted' with zkspring 3.2 and Spring Security 4
webapp folder of ZK spring boot?
Can I set in runtime a new value to library property: org.zkoss.zk.ui.processMask.enabled:
Package ZK Eclipse Tomcat Project For Deployment
AImage org.zkoss.zk.ui.UiException: java.io.FileNotFoundException