Hi, 

I have an action passing a list of User objects, each User object has a
getRoles() that returns a list of Roles associated with the User
object.

Both of the following work:

<ww:select label="u" name="users"  list="users" 
                 listKey="username" listValue="givenName"/> 
<ww:select label="r" name="usersr"  list="users[0].roles" 
                 listKey="name" listValue="description"/> 

The first produces a dropdown of all the users, and the second of all
the roles of the first user.

However, if I do this:
<ww:iterator value="users">
 <ww:property value="username"/></td>
 <ww:select label="roles" name="rroles"  list="roles" 
                       listValue="description" listKey="name" /> 
</ww:iterator>

Then I get a StackOverflow exception. I expected it to show me a
dropdown of the roles for each user instead....Using the latest build
from the CVS.

Am I doing something wrong?
Thanks
Jon

ValueStack threw exception class java.lang.StackOverflowError : null
        at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:309)
        at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
        at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:357)
        at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:135)
        at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
        at
org.apache.velocity.runtime.directive.Parse.render(Parse.java:232)
        at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153)
        at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
        at org.apache.velocity.Template.merge(Template.java:296)
        at
com.opensymphony.webwork.views.jsp.ui.AbstractUITag.mergeTemplate(AbstractUITag.java:526)
        at
com.opensymphony.webwork.views.jsp.ui.AbstractUITag.doEndTag(AbstractUITag.java:273)


=====
.

________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to