I have a requirement of displaying/hiding an additional field in my JSP based upon the user selection of an option of combo box. I am using Spring XT to handle it, but then failing with the problem of multi browser compatibility. The code works fine in IE, but fails in FireFox 2.0.
Firefox displays the field always.
The following is the JSP code, by default the field is made as hidden
and on the event of the combo box, I set the visibility true.Code:<spring:bind path="searchForm.inputFields[${searchRow}].maxValue"> <input type="text" name="<core:out value="${status.expression}"/>" value="<core:out value="${status.value}"/>" style=".visibility=hidden"" size="10"> </spring:bind>
I am sure the problem is with the style attribute.Code:SetAttributeAction setMaxValueAction = new SetAttributeAction("inputFields["+strRowId+"].maxValue", "style", ".visibility=visible"); response.addAction(setMaxValueAction);
Is there any other way to handle it?
Regards,
Anshumn


Reply With Quote
