rleland     2003/11/16 20:12:02

  Modified:    conf/share validator-rules.xml
  Log:
  Bug 23993
  Use the jsFunction attribute to specify the class path to the js
  function for min/maxlength. Also correct maxlength error message
  resource.
   Thanks to David for commenting on this Bug, it made me realize
    this problem was easily solved.
  
  Revision  Changes    Path
  1.46      +7 -5      jakarta-struts/conf/share/validator-rules.xml
  
  Index: validator-rules.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/conf/share/validator-rules.xml,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- validator-rules.xml       31 Oct 2003 06:26:26 -0000      1.45
  +++ validator-rules.xml       17 Nov 2003 04:12:02 -0000      1.46
  @@ -185,7 +185,8 @@
                          org.apache.struts.action.ActionMessages,
                          javax.servlet.http.HttpServletRequest"
                 depends=""
  -                  msg="errors.minlength"/>
  +                  msg="errors.minlength"
  +          jsFunction ="org.apache.commons.validator.javascript.validateMinLength"/>
   
   
         <validator name="maxlength"
  @@ -197,7 +198,8 @@
                          org.apache.struts.action.ActionMessages,
                          javax.servlet.http.HttpServletRequest"
                 depends=""
  -                  msg="errors.invalid"/>
  +                  msg="errors.maxlength"
  +          jsFunction 
="org.apache.commons.validator.javascript.validateMaxLength"/>/>
   
   
   
  
  
  

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

Reply via email to