no this is not the issue. what i am doing i set the model in JavaCode and then in zul i am using selectedItem="@bind('vm.color'). that is my scenario.
jatindersingh ( 2013-08-15 18:03:26 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi There,
I have requirement to customize the combobox. in my list i have 5 -10 combobox and i want when my combobox render the item it takes from the db i did this by extending combobox now next i am facing issue in case i am going to give some default value for selecctedItem. it gives the following error when the page get loaded "Unsupported child for Combobox: <listitem null="">"...is there any body can help me to resolved this issue.
I'm not sure if this is the issue, but I've had a similar problem. I had to set the selected index after the combobox was rendered by listening to the onAfterRender event.
@Listen("onAfterRender = #myCombobox")
public void afterRenderMyCombobox() {
myCombobox.setSelectedIndex(myDefaultIndex);
}
no this is not the issue. what i am doing i set the model in JavaCode and then in zul i am using selectedItem="@bind('vm.color'). that is my scenario.
jatindersingh ( 2013-08-15 18:03:26 +0800 )editAsked: 2013-08-15 17:32:27 +0800
Seen: 38 times
Last updated: Aug 15 '13