struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Problem with <html:select> default value
Date Thu, 05 Mar 2009 13:03:27 GMT
Yves Dessertine wrote:
> Yeah, thanks a lot Benjamin!
> 
> I did *basically* what you told (building a Collection of
> LabelValueBean, but I did this in an action -- same result: it works
> :)).
> 
> But I still don't understand why selecting default values hadn't
> worked when building a list of option with individual <html:option />
> tags in jsp page. Do you have an idea? Just for my culture.

Because Struts had nothing to do with creating the <option> elements. 
The <html:select> tag doesn't retroactively examine the DOM to figure 
out which item (if any) should be selected, it performs that logic while 
creating the option elements.

Dave


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


Mime
View raw message