All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mockrunner.test.web.validation.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE form-validation PUBLIC
          "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
          "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">

<form-validation>
   
   <formset>

      <form name="testForm">
         <field    property="firstName"
         	   depends="required,mask,minlength">
         	     <arg key="registrationForm.firstname.displayname" position="0"/>
         	     <arg name="minlength" key="${var:minlength}" resource="false" position="1"/>
                     <var>
                       <var-name>mask</var-name>
                       <var-value>^\w+$</var-value>
                     </var>
                     <var>
                       <var-name>minlength</var-name>
                       <var-value>5</var-value>
                     </var>
         </field>
         <field    property="lastName"
         	   depends="required,mask,maxlength">
         	     <msg name="mask" key="registrationForm.lastname.maskmsg"/>
         	     <arg key="registrationForm.lastname.displayname" position="0"/>
         	     <arg name="maxlength" key="${var:maxlength}" resource="false" position="1"/>
                     <var>
                       <var-name>mask</var-name>
                       <var-value>^[a-zA-Z]*$</var-value>
                     </var>
                     <var>
                       <var-name>maxlength</var-name>
                       <var-value>10</var-value>
                     </var>
         </field>
      </form>
      
   </formset>
</form-validation>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy