struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Omar Ngarigari <ngarigar...@yahoo.com>
Subject Re: s:checkbox inside s:iterator in struts2.3.1.2
Date Mon, 24 Sep 2012 20:26:31 GMT
I figured it out. I think the correct way is to use fieldValue instead of value. It is working
now. Thanks so much for your help.

<s:checbox name="age" fieldValue="%{myList.ageNumber}"/>


________________________________
 From: Lukasz Lenart <lukaszlenart@apache.org>
To: Struts Users Mailing List <user@struts.apache.org>; Omar Ngarigari <ngarigarius@yahoo.com>

Sent: Monday, September 24, 2012 2:08 PM
Subject: Re: s:checkbox inside s:iterator in struts2.3.1.2
 
2012/9/24 Omar Ngarigari <ngarigarius@yahoo.com>:
> Hello,
>
> I changed my JSP page as per the documentation recommendation:
>
> <s:iterator value="myList" var="record">
> <s:property value="#record.ageNumber"/>
> <s:property value="#record.name"/>
> <s:checkbox name="age" value="%{#record.ageNumber}"/>
> </iterator>

And works ?


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message