Well, I was simplifying a bit.

it's actually survey.responseGroups[#i], where getResponseGroups()
returns a List<Response>, each of which has a getValue(Long) and
setValue(Long).

Hmm, setResponseGroups() wants a full List back, would that mess things up?

On 6/12/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- Lally Singh <[EMAIL PROTECTED]> wrote:
> <s:set name="i" value="0" />
> <s:iterator value="groups">
>   <s:radio name="groups[#i].value" list="{1,2,3,4}"
> />
>   <s:set name="i" value="#i + 1" />
> </s:iterator>
>
> This doesn't do what I want, which is to have 1 set
> of radio buttons per item in groups, each bound to
> the value property of element i in groups.

How is "groups" defined in your Action and what do its
get/set look like? (And as a sanity check, is it
generating the appropriate HTML?)

FYI, you can skip the <s:set.../> by using
<s:iterator.../>'s "status" attribute.

d.




____________________________________________________________________________________
Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.
http://autos.yahoo.com/carfinder/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
H. Lally Singh
Ph.D. Candidate, Computer Science
Virginia Tech

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to