The problem with this is that checkboxes only exist when they are
checked. If the box is not checked, nothing is sent to the form for
that box. Thus you are seeing information in your pre-populated data
for those boxes that were checked when the form was submitted. It's not
an easy fix, and one I too am currently struggling with.
Skip Hollowell
Mano Dasanayaka-2 wrote:
Hi All,
I have a jsp where we list down some dynamic checkboxes.
for this we use s:checkbox tag inside a s:iterator ,
<s:iterator value="packageList" id="entry" status="stat">
<s:checkbox
name="fullMarket" fieldValue="${entry.packageId}"
theme="simple" value="${fullMarket}" >
</s:checkbox>
</s:iterator>
in my action class I have a string[] named fullMarket and all the
required
getters and setters are provided there. Everything happens successfully,
when we submit the form ,,.i.e fullMarket array comes with the selected
id's.
but as we try to pre populate this same set of checkboxes , I see all the
checkboxes selected irrespective of the values I set in action class.
this.fullMarket = new String[] {"3","4","5"};
Any one got an idea what's wrong with this implementation.,..,
Thanks In Advance
Regards,
Mano
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
<http://www.nabble.com/user/SendEmail.jtp?type=post&post=15823377&i=0>
For additional commands, e-mail: [EMAIL PROTECTED]
<http://www.nabble.com/user/SendEmail.jtp?type=post&post=15823377&i=1>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]