First off, thx for a great product and lively community.

I'm having issues getting the client side validation to work in my spring basic appfuse 2.0.2 app.
I've been trying to get it working for some time now but I must be blind.

Here goes: (Code not complete, only added what I think is relevant)
JSP:
<%@ include file="/common/taglibs.jsp"%>

<form:form commandName="unit" method="post" action="adjustwarrantsform.html" id="warrantAdjustmentForm" onsubmit="return validateWarrantAdjustment(this)"> <display:table name="unit.warrantAdjustments" id="warrantAdjustment" class="table warrantAdjustments" export="false">
      <display:column titleKey="warrantAdjustment.amount" sortable="true">
<form:input path="warrantAdjustments[${warrantAdjustment_rowNum - 1}].amount" id="amount"/>
       </display:column>

<v:javascript formName="warrantAdjustment" cdata="false" dynamicJavascript="true" staticJavascript="false"/> <script type="text/javascript" src="<c:url value="/scripts/validator.jsp"/>"></script>

then in the validator.xml
   <form name="warrantAdjustment">
       <field property="amount" depends="required">
           <arg0 key="warrantAdjustment.amount"/>
       </field>
     </form>

dispatcher-servlet.xml:
<bean id="adjustWarrantsFormController" class="AdjustWarrantsFormController">
       <property name="validator" ref="beanValidator"/>
       <property name="successView" value="redirect:/units.html"/>
   </bean>

The problem is that the validation just don't kick in. I'm convinced that its just a typo or something banal cause I have the client validation working perfectly in other forms.
Anyone see the problem?

Thx
Alf

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

Reply via email to