struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukio <lukaszkal...@gmail.com>
Subject s:select tag problem upgrede to struts 2
Date Mon, 10 Dec 2007 14:07:34 GMT

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-tp14253206p14253206.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message