struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lally Singh" <lally.si...@gmail.com>
Subject Re: [S2] Form & OGNL Questi
Date Tue, 12 Jun 2007 20:49:32 GMT
Actually:
<s:radio name="survey.responseGroups[%{#i}].value" list="{1,2,3,4}" />

Otherwise all the radio boxes have exactly the same name, and that
leaves me with a single choice in a large matrix of options, instead
of 1 choice per group of 4.

While I do end up writing the group of Responses to the DB, they all
have their default (null) values.



On 6/12/07, Dave Newton <newton.dave@yahoo.com> wrote:
> --- Lally Singh <lally.singh@gmail.com> wrote:
> > 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?
>
> Shouldn't... I think.
>
> So is your JSP actually:
>
> > <s:radio name="survey.responseGroups[#i].value"
> >          list="{1,2,3,4}"/>
>
> d.
>
>
>
>       ____________________________________________________________________________________
> Luggage? GPS? Comic books?
> Check out fitting gifts for grads at Yahoo! Search
> http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


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

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


Mime
View raw message