Hi Susan,

        In my application, I do not have to reset the entire form, as I
do an update and return to the same page... The user should be able to
see the checkboxes that he set or disabled. Do you have any ideas??? One
idea given to me was to read the request parameters and then set the
checkboxes according... Plss let me know if you know of anything else...

Thanks,
Raghu

-----Original Message-----
From: Susan Bradeen [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 22, 2003 2:00 PM
To: Struts Users Mailing List
Subject: Re: Resetting of Checkbox when using logic:iterate Tag


Are you using the reset() method of your ActionForm to set the checkbox
to 
null or false?

http://jakarta.apache.org/struts/faqs/newbie.html#checkbox

Susan Bradeen

On 08/22/2003 12:32:17 PM "Raghu.Ramakrishnan" wrote:

> Hi,
> 
> I have one issue, that is I have some checkboxes within my 
> <logic:iterate>, and
> 
> 1) When the user clicks on the checkbox, the property corresponding to

> the checkbox is set to 'on'.
> 2) When the user de-clicks the checkbox(removes the check), the 
> checkbox is still set to 'on', how do we reset the checkbox...
> 
> 
> My code is as follows:
> 
> <logic:iterate name="WorkQueueForm" property="workQueueArrList" 
> indexId="clmIdx" id="indexBean" 
> type="com.tgt.dist.icl.formbeans.WorkQueueBean">
> 
> <html:select name="indexBean" property="updtClaimStatus" 
> indexed="true"
> >
> <html:option value="">&nbsp;</html:option>
> <html:option value="P">P</html:option>
> <html:option value="W">W</html:option>
> <html:option value="A">A</html:option>
> <html:option value="M">M</html:option>
> <html:option value="C">C</html:option>
> </html:select>
> 
> <html:checkbox name="indexBean" property="updtClaimPriority" 
> indexed="true"></html:checkbox>
> 
> </logic:iterate>
> 
> WorkQueueForm is the Form Bean
> workQueueArrList is a property of the WorkQueue Form Bean which 
> contains WorkQueue Beans.
> 
> 
> I would be obliged if you could let us know how to reset the checkbox,

> when the user Deselects the checkbox, the checkbox property in the 
> WorkQeue Bean should be reset to null.
> 
> Thanks,
> Raghu
> 
> -----Original Message-----
> From: Dan Tran [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 22, 2003 10:45 AM
> To: Struts Users Mailing List
> Subject: Re: struts test info
> 
> 
> http://strutstestcase.sourceforge.net/
> 
> -Dan
> ----- Original Message -----
> From: "ronanoc" <[EMAIL PROTECTED]>
> To: "Struts List" <[EMAIL PROTECTED]>
> Sent: Friday, August 22, 2003 6:13 AM
> Subject: struts test info
> 
> 
> > Can anyone point me in the direction of good examples and info about

> > using/writing Struts tests.... other than the documentation that 
> > comes
> 
> > with Struts test it self...?
> >
> > Thanks in advance.
> >
> > Ron.
> > Always ready to Discotogogo
> >
> >
> > --------------------------------------------------------------------
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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


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

Reply via email to