The correct is attributes, isn“t ?
<s:select name="mandantId" list="data" emptyOption="false" listKey="id"
listValue="attributes(name")" theme="simple"/>
lukio wrote:
>
> I have object:
>
> public class Component
> {
> private int id;
> ...
> private Map attributes;
> ...
> public Object getAttribute(String name)
> {
> return attributes.get(name);
> }
> public int getId()
> {
> return id;
> }
> ...
> }
>
> struts action:
>
> public class myAction
> {
> private Collection data; // colection of Component
>
> public String execute()
> {
> fillDatta();
> return "success";
> }
> }
>
> <s:select name="mandantId" list="data" emptyOption="false" listKey="id"
> listValue="attribute(name")" theme="simple"/>
>
> Problem with I have is with listValue="attribute(name)" - it is possible
> to solve this.
>
> In struts 1 something like "attribute(name)" works very good:
>
> <html:options collection="<%= Parameter.MANDANTS_LIST_REQ %>"
> property="id" labelProperty="attribute(name)"/>
>
>
--
View this message in context:
http://www.nabble.com/s%3Aselect-tag-problem-upgrede-to-struts-2-tp14253206p14255115.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]