Hi,
I have a select box:
s:select name=user.property
list=availableObjects listKey=id listValue=name /
availableObjects is a list of objects having an id and a name
property, where id is of type long. user.property is 'converted' to
its id (as String) by a type converter.
Now,
I have a select that populates with a int,string id/value combo. To
get the s:select to select the proper option I had to crate another
value in my action (int myId). This would be set to the id of the
option to select. Then I had to set the name attribute of my select
to myId (name=myId).
On
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
3 matches
Mail list logo