struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nadia Kunkov" <nad...@parkerglobal.com>
Subject RE: html:options won't get preselected!
Date Thu, 30 Dec 2004 17:01:23 GMT
You are right! It was the key against the name.
Thank you so much.
Nadia

-----Original Message-----
From: Wendy Smoak [mailto:java@wendysmoak.com]
Sent: Thursday, December 30, 2004 11:20 AM
To: Struts Users Mailing List
Subject: Re: html:options won't get preselected!


From: "Nadia Kunkov" <nadiak@parkerglobal.com>

> <html:select property="country" >
>     <html:options collection="countryList" property="countryID"
                        labelProperty="countryName"/>
>  </html:select>

Struts will pre-select the item when the 'country' property of the form
matches the countryID of the option.

What is the exact value of the 'country' property of the form?  I'm betting
you've got 'Canada' when you need 'CAN'.

-- 
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message