struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Baldes ...@open.ch>
Subject Re: s:select and pre-selection
Date Fri, 29 Feb 2008 14:00:08 GMT
Daniel Baldes wrote:
> Hi,
> 
> I have a select box:
> 
> <s:select name="user.property"
>           list="availableObjects" listKey="id" listValue="name" />

Ok, I found it myself:

<s:select name="user.property" value="%{user.property.id}"
           list="availableObjects" listKey="id" listValue="name" />

this works. It seems the code which does the pre-selection does not use 
the type-converted value of "user.property" but the original value.

Cheers,
Daniel

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


Mime
View raw message