Help: How do I iterate and submit to the server? works with struts not ww

Rakon <[email protected]>
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <30570107.1148209400900.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
I recently converted from Struts to webwork but am now encountering problem with the difference between the two. In struts, we can use a [b]nested:iterate[/b] tag in conjunction with a [b]nested:input[/b] tag to submit nested values to the server. The generated html will append [index] to the end of the parameter name and struts translate that to the list but doing a list.get(index).setProperty().

I attemped the same with Webwork but the values always fails to submit:

<ww:form name="save" namespace="sample" action="toy!save.action" validate="false" method="POST">
<ww:iterator value="toyList" id="test">
	<ww:property value="toyId" />
	<ww:textfield  label="Size" name="size" />
</ww:iterator>
<ww:submit value="Save" />
</ww:form>

Basically, I have a list of toys that I want to update their size all at once.  Any help is appreciated.

ERRORS:
03:44:43,418 ERROR [[webwork]] Servlet.service() for servlet webwork threw exception
java.lang.RuntimeException: No object in the CompoundRoot has a property named 'size'.
	at com.opensymphony.xwork.util.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:67)
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=31674&messageID=61299#61299

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.