-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I put a item in a ComboBox on the doAfterCompose:
Comboitem item = new Comboitem();
item.setValue(user);
item.setLabel(user.getName);
this.usuario.appendChild(item);
this.usuario.setSelectedIndex(0);
this.usuario.setSelectedItem(item);
This works well and i can see the item charged and selected in the window, but when i execute one action of the window and go inside any controller method's, the Combobox "usuario" exists, but has no SelectedItem and no items:
usuario.getSelectedItem()
null
usuario.getItems()
(org.zkoss.zk.ui.AbstractComponent$Children) []
The Combox is defined in the zul:
<combobox width="245px" id="usuario"
buttonVisible="false" autodrop="true" />
I have solved it. In another code, the Combobox Model was overwritten. I change it and the problem disappear.
Asked: 2017-07-21 20:42:29 +0800
Seen: 18 times
Last updated: Nov 29 '17
Scroll a tree to display the opened node on top of the container
"Servlet.service()" pour la servlet zkLoader a généré une exception
mergeExceptionInfo not merging permission errors
Use only Swipe-Event right-left
the import org.zkoss.zul cannot be resolved
ZK with bootstrap : ComboBox problem
How to stop images from being cached at the client browser.
ZK application does not work on Edge browser in Windows 10
Trying to asychronously load UI component using Event Queues properly?
can you please provide a reproducing example on http://zkfiddle.org/ also please state your exact version e.g. 6.x.y
cor3000 ( 2017-07-26 07:27:45 +0800 )edit