When I use that 2 components in my form I need to set attributes listValue
and listKey.
That attributes as I understand require a field of a bean that is a member
of collection represented by list attribute.

Example:

    <s:radio list="types" name="type" label="Type" listValue="name" 
listKey="id" />

That means: 
1) there will be one radiobutton for each element of collection getTypes().
2) Each html radiobutton will have value = getId()  and label = getName() .

I want to compose label from several fields of my bean. So I can't write

    <s:radio listValue="someField" />

because that class doesn't have getSomeField() method.

How can I do this ?
-- 
View this message in context: 
http://www.nabble.com/s%3Aradio-and-s%3Acheckboxlist---how-to-customize-listValue-property.-tp22455829p22455829.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to