commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hus...@apache.org
Subject cvs commit: jakarta-commons/validator/src/test/org/apache/commons/validator validator-bsf.xml
Date Tue, 08 Jun 2004 14:53:12 GMT
husted      2004/06/08 07:53:12

  Added:       validator/src/test/org/apache/commons/validator
                        validator-bsf.xml
  Log:
  Apply #29205 "Add BSFValidator", submitted by Don Brown.
  
  Revision  Changes    Path
  1.1                  jakarta-commons/validator/src/test/org/apache/commons/validator/validator-bsf.xml
  
  Index: validator-bsf.xml
  ===================================================================
  <!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="bsf"
                   classname="org.apache.commons.validator.BSFValidator"
                   method="isValid"
                   methodParams="java.lang.Object,org.apache.commons.validator.Field"
                   msg=""/>
     </global>
     <formset>
        <form name="bsfForm">
           <field property="value" depends="bsf">
              <var>
               <var-name>eval</var-name>
               <var-value>value.equals("foo")</var-value>
              </var>
           </field> 
        </form>
        <form name="bsfForm-numeric">
           <field property="value" depends="bsf">
              <var>
               <var-name>eval</var-name>
               <var-value>Integer.parseInt(value)>0 &amp;&amp; Integer.parseInt(value)&lt;100</var-value>
              </var>
           </field> 
        </form>
        <form name="bsfForm-nested">
           <field property="object" depends="bsf">
              <var>
               <var-name>eval</var-name>
               <var-value>value.value.equals("foo")</var-value>
              </var>
           </field> 
        </form>
     </formset>   
  </form-validation>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message