I have this in my create.jspx
I have the following fields
and this validation logic.. I intend to replace the alert with Spring.addDecoration. However this is not working... Any ideas...Code:<field:input field="password" id="a_pwd" required="true" type="password" z="user-managed"/> <field:input field="confirm_password" id="z_c_pwd" required="true" type="password" z="user-managed" disableFormBinding="true"/>
Code:<c:set var="sec_password"> <spring:escapeBody javaScriptEscape="true" >${password}</spring:escapeBody> </c:set> <c:set var="sec_confirm_password"> <spring:escapeBody javaScriptEscape="true" >${confirm_password}</spring:escapeBody> </c:set> <c:if test="${sec_password} != ${sec_confirm_password}"> <script type="text/javascript"> alert("not ok ok"); </script> </c:if>


Reply With Quote
