-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I created a combobox with list of data.
For example
In my composer, private List<States> states; and my zul file contains for combobox <combobox id="billingStateCodeBox" width="99%" <comboitem forEach="${editVendorCompWindowId$composer.states}" value="@{each.stateCode}" label="${each.stateName}" /> </combobox>
Suppose in my composer , there is a property 'stateCode' . When my stateCode is null then it will select first comboitem in combobox and if it contains a stateCode (ex. us for United State) then it will select United State comboitem from combobox.
How i selecte a comboitem by using a property 'stateCode' of my composer?
Thanks
Vivek
Asked: 2011-06-08 01:19:19 +0800
Seen: 237 times
Last updated: Jun 08 '11