<input type="checkbox" name="rejectList" value="12">
<input type="checkbox" name="rejectList" value="11">
<input type="checkbox" name="rejectList" value="128">
So do you have a list of checkboxes like this? Do you want 2 other checkboxes that say "Select All" and "Deselect All"? The onclick event would call your function that would loop through all form elements named rejectList and deselect/select them.
David
From: "Tuan H. Le" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: <html:multibox>
Date: Mon, 4 Nov 2002 18:49:56 -0800
David,
Thanks for your response! In our app, it's required to have select all and deselect all features. I'm not sure that radio buttons can fullfil this requirement. Am I right?
Thanks,
Tuan
-----Original Message-----
From: David Graham [mailto:dgraham1980@;hotmail.com]
Sent: Monday, November 04, 2002 6:00 PM
To: [EMAIL PROTECTED]
Subject: Re: <html:multibox>
This behavior is easily acheived by using radio buttons instead of
checkboxes. Is that an option?
David
>From: "Tuan H. Le" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List (E-mail)" <[EMAIL PROTECTED]>
>Subject: <html:multibox>
>Date: Mon, 4 Nov 2002 17:54:17 -0800
>
>Hi,
>
>I need to pass in the select box index to a JavaScript function. Is there a
>way to do that in <html:multibox> tag?. I have tried JSP scripting
>(<%=...%>), but that does not work. I have two multiboxes in a form and I
>need to select/unselect the checkbox between those two multiboxes via
>calling my selectChoice() JS function below
>
>JavaScript:
>
> function selectChoice( field, i ) {
> if ( field[i].checked == true ) {
> // unselect other check box index
> }
> }
>
>JSP:
>
><logic:present ........>
> <logic:iterate id="employee" name="employeeList" ....indexId="idx"
>length="25" offset="<%= ""+count %>">
> <tr>
> <td>
> <html:multibox property="rejectList"
>onclick="selectChoice( this.form.rejectList, <<<<NEED TO PASS IN CHECKBOX
>INDEX HERE>>>> )">
> <bean:write property="employeeId" name="employee"/>
> </html:multibox>
> </td>
> </tr>
> </logic:iterate>
></logic:present>
>
>Thanks,
>Tuan
><< winmail.dat >>
>--
>To unsubscribe, e-mail:
><mailto:struts-user-unsubscribe@;jakarta.apache.org>
>For additional commands, e-mail:
><mailto:struts-user-help@;jakarta.apache.org>
_________________________________________________________________
Unlimited Internet access -- and 2 months free! Try MSN.
http://resourcecenter.msn.com/access/plans/2monthsfree.asp
--
To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>
_________________________________________________________________
Surf the Web without missing calls! Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp
--
To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>