<!DOCTYPE form-validation PUBLIC
     "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN"
     "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd">
     
<form-validation>
   <global>
      <validator name="required"
                 classname="org.apache.portals.bridges.frameworks.spring.validation.ValidationSupport"
                 method="validateRequired"
                 methodParams="java.lang.Object,org.apache.commons.validator.ValidatorAction,org.apache.commons.validator.Field,java.util.Map,java.util.ResourceBundle"
                 msg="errors.required"/>
      <validator name="range"
                 classname="org.apache.portals.bridges.frameworks.spring.validation.ValidationSupport"
                 method="validateRange"
                 methodParams="java.lang.Object,org.apache.commons.validator.ValidatorAction,org.apache.commons.validator.Field,java.util.Map,java.util.ResourceBundle"
                 msg="errors.range"/>
      <validator name="doubleRange"
                 classname="org.apache.portals.bridges.frameworks.spring.validation.ValidationSupport"
                 method="validateDoubleRange"
                 methodParams="java.lang.Object,org.apache.commons.validator.ValidatorAction,org.apache.commons.validator.Field,java.util.Map,java.util.ResourceBundle"
                 msg="errors.range"/>
      <validator name="mask"
                 classname="org.apache.portals.bridges.frameworks.spring.validation.ValidationSupport"
                 method="validateMask"
                 methodParams="java.lang.Object,org.apache.commons.validator.ValidatorAction,org.apache.commons.validator.Field,java.util.Map,java.util.ResourceBundle"
                 msg="errors.mask"/>
      <validator name="maxLength"
                 classname="org.apache.portals.bridges.frameworks.spring.validation.ValidationSupport"
                 method="validateMaxLength"
                 methodParams="java.lang.Object,org.apache.commons.validator.ValidatorAction,org.apache.commons.validator.Field,java.util.Map,java.util.ResourceBundle"
                 msg="errors.maxlength"/>                 
   </global>
   <formset>
      <form name="clientInfo">
         <field property="name"  depends="required">
         	   <arg key="Name"/>
         </field>    
         <field  property="phone" depends="required">
         	     <arg key="Phone"/>
         </field>
         <field  property="email" depends="required">
         	     <arg key="Email"/>
         </field>
         <field  property="stocks" depends="required">
         	     <arg key="Stocks"/>
         </field>
         <field  property="income" depends="required">
         	     <arg key="Income"/>
         </field>
         <!--
         <field  property="postalCode" depends="required,mask">
         	     <arg key="nameForm.postalCode.displayname"/>
         	     <var>
         	     	<var-name>mask</var-name>
         	     	<var-value>^[0-9]{5,5}</var-value>
         	     </var>         	     
         </field>
         <field  property="age" depends="required, range">
         	     <arg0 key="nameForm.age.displayname"/>
         	     <arg1 name="min" key="${var:min}" resource='false'/>         	     
         	     <arg2 name="max" key="${var:max}" resource='false'/>         	              	     
         	     <var>
         	     	<var-name>min</var-name>
         	     	<var-value>1</var-value>
         	     </var>
         	     <var>
         	     	<var-name>max</var-name>
         	     	<var-value>125</var-value>
         	     </var>         	     
         </field>
         <field  property="era" depends="doubleRange">
         	     <arg0 key="nameForm.era.displayname"/>
         	     <arg1 name="min" key="${var:min}" resource='false'/>         	     
         	     <arg2 name="max" key="${var:max}" resource='false'/>         	              	     
         	     <var>
         	     	<var-name>min</var-name>
         	     	<var-value>5.0</var-value>
         	     </var>
         	     <var>
         	     	<var-name>max</var-name>
         	     	<var-value>500.0</var-value>
         	     </var>         	     
         	     
         </field>
	-->
      </form>
      <form name="symbols">
         <field property="symbols"  depends="required">
         	   <arg key="nameForm.firstname.displayname"/>
         </field>    
	  </form>            
   </formset>   
</form-validation>
