Hi,
The followingcode is piece of my Jsp file. Here there are five values for the checkbox and one of the value out of 5 is NO. So if the user checked the NO checkbox then rest of the 4 checkboxes should be disabled. Nothing but toggle on/off. I’m sending as list of values thru Map.add(“adverseEvents”,”list of values from table”) to JSP form. But eventsMap is Set variable inside my XXXXEditForm.java file. If No is not selected then user can able to select more than one value (ie they can check more than one checkbox).The following code is working fine ie the user can select morethan one check box. but i don’t know how to make it work if user choose “NO”. Among of the five values one of the item is other, so if user choose other then i need to show a textbox for user input, that is also working fine.
Any help would be appreciated.
Thanks in Advance.
<tr>
<td><spring:message code=”adverseEvent”/>:</td>
<td>
<table border=”0″>
<c:forEach var=”ae” items=”${adverseEvents}”>
<tr>
<td width=”10″><form:checkbox path=”eventsMap[‘${ae.integerValue}’]” /></td>
<td>${ae.stringValue} <c:if test=”${ae.settingName==’OTHER’}”><form:input path=”eventsNotesMap[‘${ae.integerValue}’]” /></c:if></td>
</tr>
</c:forEach>
</table>
</td>
</tr>