0

Default selected item in combobox

asked 2011-06-08 01:19:19 +0800

vivekkumar20005 gravatar image vivekkumar20005
66 1

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

delete flag offensive retag edit
Be the first one to reply this discussion!
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: 2011-06-08 01:19:19 +0800

Seen: 237 times

Last updated: Jun 08 '11

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