cvs commit: jakarta-commons/validator/etc jsdoc.sh

2004-05-21 Thread rleland
rleland 2004/05/21 07:28:12

  Modified:validator/etc jsdoc.sh
  Log:
  Add docs
  
  Revision  ChangesPath
  1.4   +10 -4 jakarta-commons/validator/etc/jsdoc.sh
  
  Index: jsdoc.sh
  ===
  RCS file: /home/cvs/jakarta-commons/validator/etc/jsdoc.sh,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- jsdoc.sh  21 Feb 2004 17:10:29 -  1.3
  +++ jsdoc.sh  21 May 2004 14:28:12 -  1.4
  @@ -17,7 +17,13 @@
   #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   #  See the License for the specific language governing permissions and
   #  limitations under the License.
  - #
  +#
  +
  +# jsdoc is a perl script for generating javadoc for javascript.
  +# The latest version can be downloaded from :
  +#  http://sourceforge.net/projects/jsdoc/
  +#
  +
   dirtoprocess=$2
   outputto=$3
   package=/org/apache/commons/validator/javascript
  
  
  

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



cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator ValidatorAction.java

2004-04-12 Thread rleland
rleland 2004/04/12 22:49:22

  Modified:validator/src/share/org/apache/commons/validator Tag:
VALIDATOR_1_1_2_BRANCH ValidatorAction.java
  Log:
  PR: 28257 Backported patch David made to use reader instead of InputStream
   to work around bug in JWS 1.4 under JRE prior to 1.3.1_05
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.20.2.1  +16 -19
jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorAction.java
  
  Index: ValidatorAction.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorAction.java,v
  retrieving revision 1.20
  retrieving revision 1.20.2.1
  diff -u -r1.20 -r1.20.2.1
  --- ValidatorAction.java  21 Feb 2004 17:10:29 -  1.20
  +++ ValidatorAction.java  13 Apr 2004 05:49:22 -  1.20.2.1
  @@ -21,8 +21,10 @@
   
   package org.apache.commons.validator;
   
  +import java.io.BufferedReader;
   import java.io.IOException;
   import java.io.InputStream;
  +import java.io.InputStreamReader;
   import java.io.Serializable;
   import java.lang.reflect.InvocationTargetException;
   import java.lang.reflect.Method;
  @@ -428,32 +430,27 @@
   return null;
   }
   
  -StringBuffer function = new StringBuffer();
  +StringBuffer buffer = new StringBuffer();
  +BufferedReader reader = new BufferedReader(new InputStreamReader(is));
   try {
  -int bufferSize = is.available();
  -int bytesRead;
  -while (bufferSize  0) {
  -byte[] buffer = new byte[bufferSize];
  -bytesRead = is.read(buffer, 0, bufferSize);
  -if (bytesRead  0) {
  -String functionPart = new String(buffer,0,bytesRead);
  -function.append(functionPart);
  -}
  -bufferSize = is.available();
  +String line = null;
  +while ((line = reader.readLine()) != null) {
  +buffer.append(line + \n);
   }
   
   } catch(IOException e) {
  -log.error(readJavascriptFile(), e);
  +log.error(Error reading javascript file., e);
   
   } finally {
   try {
  -is.close();
  +reader.close();
   } catch(IOException e) {
  -log.error(readJavascriptFile(), e);
  +log.error(Error closing stream to javascript file., e);
   }
   }
  -String strFunction = function.toString();
  -return strFunction.equals() ? null : strFunction;
  +
  +String function = buffer.toString();
  +return function.equals() ? null : function;
   }
   
   /**
  
  
  

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



cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator ValidatorResources.java

2004-04-12 Thread rleland
rleland 2004/04/12 22:50:11

  Modified:validator/src/share/org/apache/commons/validator Tag:
VALIDATOR_1_1_2_BRANCH ValidatorResources.java
  Log:
  register 1.1.3 DTD
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.30.2.1  +6 -4  
jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorResources.java
  
  Index: ValidatorResources.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorResources.java,v
  retrieving revision 1.30
  retrieving revision 1.30.2.1
  diff -u -r1.30 -r1.30.2.1
  --- ValidatorResources.java   21 Feb 2004 17:10:29 -  1.30
  +++ ValidatorResources.java   13 Apr 2004 05:50:11 -  1.30.2.1
  @@ -64,7 +64,9 @@
   -//Apache Software Foundation//DTD Commons Validator Rules Configuration 
1.0.1//EN,
   /org/apache/commons/validator/resources/validator_1_0_1.dtd,
   -//Apache Software Foundation//DTD Commons Validator Rules Configuration 
1.1//EN,
  -/org/apache/commons/validator/resources/validator_1_1.dtd
  +/org/apache/commons/validator/resources/validator_1_1.dtd,
  +-//Apache Software Foundation//DTD Commons Validator Rules Configuration 
1.1.3//EN,
  +/org/apache/commons/validator/resources/validator_1_1_3.dtd
   };
   
   /**
  
  
  

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



cvs commit: jakarta-commons/validator project.xml build.xml

2004-04-12 Thread rleland
rleland 2004/04/12 22:52:15

  Modified:validator Tag: VALIDATOR_1_1_2_BRANCH project.xml build.xml
  Log:
  Change build version to 1.1.3-dev
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.40.2.1  +1 -1  jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.40
  retrieving revision 1.40.2.1
  diff -u -r1.40 -r1.40.2.1
  --- project.xml   4 Apr 2004 06:47:26 -   1.40
  +++ project.xml   13 Apr 2004 05:52:15 -  1.40.2.1
  @@ -19,7 +19,7 @@
 extend../commons-build/project.xml/extend
 nameValidator/name
 idcommons-validator/id
  -  currentVersion1.1.2/currentVersion
  +  currentVersion1.1.3-dev/currentVersion
 inceptionYear2002/inceptionYear
 packageorg.apache.commons.validator/package
   
  
  
  
  1.32.2.1  +2 -2  jakarta-commons/validator/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/build.xml,v
  retrieving revision 1.32
  retrieving revision 1.32.2.1
  diff -u -r1.32 -r1.32.2.1
  --- build.xml 30 Mar 2004 06:18:05 -  1.32
  +++ build.xml 13 Apr 2004 05:52:15 -  1.32.2.1
  @@ -67,7 +67,7 @@
 property name=component.title value=Validator/
   
 !-- The current version number of this component --
  -  property name=component.version   value=1.1.2/
  +  property name=component.version   value=1.1.3-dev/
   
 !-- The base directory for compilation targets --
 property name=build.home  value=target/
  
  
  

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



cvs commit: jakarta-commons/validator/conf/share validator_1_2_0.dtd

2004-04-06 Thread rleland
rleland 2004/04/06 15:19:58

  Modified:validator/conf/share validator_1_2_0.dtd
  Log:
  Fix variable syntax for js-type in trunk
  
  Revision  ChangesPath
  1.4   +3 -4  jakarta-commons/validator/conf/share/validator_1_2_0.dtd
  
  Index: validator_1_2_0.dtd
  ===
  RCS file: /home/cvs/jakarta-commons/validator/conf/share/validator_1_2_0.dtd,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- validator_1_2_0.dtd   6 Apr 2004 00:48:12 -   1.3
  +++ validator_1_2_0.dtd   6 Apr 2004 22:19:58 -   1.4
  @@ -291,7 +291,7 @@
range validation. These parameters may also be referenced by one of the
arg? elements using a shell syntax: ${var:var-name}.
   --
  -!ELEMENT var (var-name, var-value, var-jstype)
  +!ELEMENT var (var-name, var-value, var-jstype?)
   
   
   
  @@ -308,8 +308,7 @@
   !ELEMENT var-value (#PCDATA)
   
   !--
  - The java script type, int, string, or regexp. TODO: LIMIT options to these 3.
  -!ELEMENT var-jstype (int|string|regexp)would this work ?
  + The java script type, Possible Values [int| string | regexp] 
   
   --
   !ELEMENT var-jstype (#PCDATA)
  
  
  

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



cvs commit: jakarta-commons/validator/conf/share validator_1_1_3.dtd

2004-04-06 Thread rleland
rleland 2004/04/06 15:20:36

  Modified:validator/conf/share Tag: VALIDATOR_1_1_2_BRANCH
validator_1_1_3.dtd
  Log:
  Fix variable syntax for js-type in VALIDATOR_1_1_2_BRANCH
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.1.2.2   +3 -4  jakarta-commons/validator/conf/share/Attic/validator_1_1_3.dtd
  
  Index: validator_1_1_3.dtd
  ===
  RCS file: /home/cvs/jakarta-commons/validator/conf/share/Attic/validator_1_1_3.dtd,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- validator_1_1_3.dtd   6 Apr 2004 01:12:37 -   1.1.2.1
  +++ validator_1_1_3.dtd   6 Apr 2004 22:20:36 -   1.1.2.2
  @@ -288,7 +288,7 @@
range validation. These parameters may also be referenced by one of the
arg? elements using a shell syntax: ${var:var-name}.
   --
  -!ELEMENT var (var-name, var-value, var-jstype)
  +!ELEMENT var (var-name, var-value, var-jstype?)
   
   
   
  @@ -305,8 +305,7 @@
   !ELEMENT var-value (#PCDATA)
   
   !--
  - The java script type, int, string, or regexp. TODO: LIMIT options to these 3.
  -!ELEMENT var-jstype (int|string|regexp)would this work ?
  + The java script type, Possible Values [int| string | regexp] 
   
   --
   !ELEMENT var-jstype (#PCDATA)
  
  
  

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



cvs commit: jakarta-commons/validator/conf/share validator_1_2_0.dtd

2004-04-05 Thread rleland
rleland 2004/04/05 17:48:12

  Modified:validator/conf/share validator_1_2_0.dtd
  Log:
  This partially fixes a missing attribute for var.

  I am not a DTD expert, but would like to limit possible valies to int, string  
regexp
  
  Revision  ChangesPath
  1.3   +8 -2  jakarta-commons/validator/conf/share/validator_1_2_0.dtd
  
  Index: validator_1_2_0.dtd
  ===
  RCS file: /home/cvs/jakarta-commons/validator/conf/share/validator_1_2_0.dtd,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- validator_1_2_0.dtd   5 Apr 2004 12:47:04 -   1.2
  +++ validator_1_2_0.dtd   6 Apr 2004 00:48:12 -   1.3
  @@ -291,7 +291,7 @@
range validation. These parameters may also be referenced by one of the
arg? elements using a shell syntax: ${var:var-name}.
   --
  -!ELEMENT var (var-name, var-value)
  +!ELEMENT var (var-name, var-value, var-jstype)
   
   
   
  @@ -307,4 +307,10 @@
   --
   !ELEMENT var-value (#PCDATA)
   
  +!--
  + The java script type, int, string, or regexp. TODO: LIMIT options to these 3.
  +!ELEMENT var-jstype (int|string|regexp)would this work ?
  +
  +--
  +!ELEMENT var-jstype (#PCDATA)
   
  
  
  

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



cvs commit: jakarta-commons/validator/conf/share validator_1_1_3.dtd

2004-04-05 Thread rleland
rleland 2004/04/05 18:12:37

  Added:   validator/conf/share Tag: VALIDATOR_1_1_2_BRANCH
validator_1_1_3.dtd
  Log:
  BRANCH VALIDATOR AT 1_1_2 TAG and backport DTD Fix.
  This  partially fixes a missing attribute for var.
  I am not a DTD expert, but would like to limit possible valies to int, string  
regexp
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.1.2.1   +313 -0jakarta-commons/validator/conf/share/Attic/validator_1_1_3.dtd
  
  
  
  

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



cvs commit: jakarta-commons/validator/src/test/org/apache/commons/validator ExtensionTest.java validator-extension.xml ValidatorTestSuite.java

2004-04-04 Thread rleland
rleland 2004/04/04 06:53:25

  Modified:validator build.properties.sample build.xml project.xml
   validator/src/share/org/apache/commons/validator
EmailValidator.java Form.java FormSet.java
ValidatorResources.java
ValidatorResourcesInitializer.java
   validator/src/test/org/apache/commons/validator
ValidatorTestSuite.java
  Added:   validator/conf/share validator_1_2_0.dtd
   validator/src/test/org/apache/commons/validator
ExtensionTest.java validator-extension.xml
  Log:
  Bug 27870  Patch For Form inheritance provided by Nacho G. Mac Dowell
  Since this is a major functionality change though amount of code was small
  Validator version rev changed to 1.2.0-dev
  
  Revision  ChangesPath
  1.12  +7 -7  jakarta-commons/validator/build.properties.sample
  
  Index: build.properties.sample
  ===
  RCS file: /home/cvs/jakarta-commons/validator/build.properties.sample,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- build.properties.sample   29 Feb 2004 09:48:28 -  1.11
  +++ build.properties.sample   4 Apr 2004 13:53:25 -   1.12
  @@ -37,16 +37,16 @@
   # from the Jakarta Commons project.
   commons-logging.jar=../logging/dist/commons-logging.jar
   
  -# The JAR file containing version 2.07 (or later) of 
  +# The JAR file containing version 2.08 (or later) of
   # the the Jakarta ORO project.
  -oro.jar=${apache.dir}/jakarta-oro-2.0.7/jakarta-oro-2.0.7.jar
  +oro.jar=${apache.dir}/jakarta-oro-2.0.8/jakarta-oro-2.0.8.jar
   
   # The JAR file containing version 3.8.1 (or later) of
   # JUnit Unit Testing (http://www.junit.org)
   junit.jar=D:/java/Lib/junit3.8.1/junit.jar
   
  -# Needed for building the Javadocs
  -xerces.jar=${apache.dir}/xerces-1_4_2/xerces.jar
  +# Needed for building the version Javadocs
  +xerces.jar=${apache.dir}/xerces-2_5_0/xercesImpl.jar
   
   # jsdoc 1.5.2 or Newer is needed for building the Javascript Javadocs
   jsdoc.home=/cygdrive/d/Projects/Sourceforge/JsDoc/JSDoc-1.5.2
  
  
  
  1.34  +4 -2  jakarta-commons/validator/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/build.xml,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- build.xml 30 Mar 2004 06:22:54 -  1.33
  +++ build.xml 4 Apr 2004 13:53:25 -   1.34
  @@ -67,7 +67,7 @@
 property name=component.title value=Validator/
   
 !-- The current version number of this component --
  -  property name=component.version   value=1.1.3-dev/
  +  property name=component.version   value=1.2.0-dev/
   
 !-- The base directory for compilation targets --
 property name=build.home  value=target/
  @@ -211,6 +211,8 @@
 file=${conf.home}/validator_1_0_1.dtd/
   copytodir=${build.home}/classes/org/apache/commons/validator/resources/
 file=${conf.home}/validator_1_1.dtd/
  +copytodir=${build.home}/classes/org/apache/commons/validator/resources/
  +  file=${conf.home}/validator_1_2_0.dtd/
   copytodir=${build.home}/classes/
 fileset dir=${javascript.home}
 includes=**/*.js/
  
  
  
  1.42  +7 -1  jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- project.xml   4 Apr 2004 07:33:52 -   1.41
  +++ project.xml   4 Apr 2004 13:53:25 -   1.42
  @@ -19,7 +19,7 @@
 extend../commons-build/project.xml/extend
 nameValidator/name
 idcommons-validator/id
  -  currentVersion1.1.3-dev/currentVersion
  +  currentVersion1.2.0-dev/currentVersion
 inceptionYear2002/inceptionYear
 packageorg.apache.commons.validator/package
   
  @@ -184,6 +184,12 @@
 email[EMAIL PROTECTED]/email
 organization/organization
   /contributor
  +  contributor
  +nameNacho G. Mac Dowell/name
  +id/id
  +email/email
  +organization/organization
  +  /contributor
   
 /contributors
 
  
  
  
  1.1  jakarta-commons/validator/conf/share/validator_1_2_0.dtd
  
  Index: validator_1_2_0.dtd
  ===
  !--
  DTD for the Validator Rules Configuration File, Version 1.1.2
  
  To allow for XML validation of your rules configuration
  file, include the following DOCTYPE element at the beginning (after
  the xml declaration):
  
  !DOCTYPE form-validation PUBLIC

cvs commit: jakarta-commons/validator/conf/share validator_1_1_2.dtd

2004-03-30 Thread rleland
rleland 2004/03/30 20:45:51

  Modified:validator/conf/share validator_1_1_2.dtd
  Log:
  Remove unused/unimplemented disable attribute.
  
  Revision  ChangesPath
  1.2   +1 -7  jakarta-commons/validator/conf/share/validator_1_1_2.dtd
  
  Index: validator_1_1_2.dtd
  ===
  RCS file: /home/cvs/jakarta-commons/validator/conf/share/validator_1_1_2.dtd,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- validator_1_1_2.dtd   3 Feb 2004 00:38:16 -   1.1
  +++ validator_1_1_2.dtd   31 Mar 2004 04:45:51 -  1.2
  @@ -44,11 +44,6 @@
It can be overridden by the 'msg' element for a specific 
field.
depends The comma-delimited list of validator that are called 
before this validator.
For this validation to succeed, all the listed validators 
must succeed.
  - disable Disable validation on client, server, or both. possible 
values: {|client|server}.
  - The default is for validation to occur on both the client 
and server.
  - A comma must be used to separate the list e.g. 
client,server if both client
  - and server validation is disabled. If this validation is 
listed in the depends
  - of another validation the disabled validation will be 
treated as if it passed.
jsFunctionName  The name of the javascript function which returns all 
fields of a certain type.
jsFunction  The name of the javascript function which is passed the 
form for validation.
   
  @@ -60,7 +55,6 @@
   !ATTLIST validator methodParams CDATA #REQUIRED
   !ATTLIST validator msg CDATA #REQUIRED
   !ATTLIST validator depends CDATA #IMPLIED
  -!ATTLIST validator disable CDATA #IMPLIED
   !ATTLIST validator jsFunctionName CDATA #IMPLIED
   !ATTLIST validator jsFunction CDATA #IMPLIED
   
  
  
  

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



cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript validateByte.js validateCreditCard.js validateDate.js validateEmail.js validateFloat.js validateFloatRange.js validateIntRange.js validateInteger.js validateMask.js validateMaxLength.js validateMinLength.js validateRequired.js validateShort.js validateUtilities.js

2004-03-28 Thread rleland
rleland 2004/03/28 08:53:21

  Modified:validator/src/javascript/org/apache/commons/validator/javascript
validateByte.js validateCreditCard.js
validateDate.js validateEmail.js validateFloat.js
validateFloatRange.js validateIntRange.js
validateInteger.js validateMask.js
validateMaxLength.js validateMinLength.js
validateRequired.js validateShort.js
validateUtilities.js
  Log:
  Use DOM Level 1 Compatable calls for getting attributes
  
  Revision  ChangesPath
  1.9   +2 -3  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateByte.js
  
  Index: validateByte.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateByte.js,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- validateByte.js   25 Mar 2004 04:56:11 -  1.8
  +++ validateByte.js   28 Mar 2004 16:53:21 -  1.9
  @@ -11,8 +11,7 @@
   var focusField = null;
   var i = 0;
   var fields = new Array();
  -var formName = getAttribute(form,name);
  -
  +var formName = form.getAttributeNode(name); 
   oByte = eval('new ' + formName.value + '_ByteValidations()');
   
   for (x in oByte) {
  
  
  
  1.8   +2 -2  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js
  
  Index: validateCreditCard.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- validateCreditCard.js 25 Mar 2004 04:56:11 -  1.7
  +++ validateCreditCard.js 28 Mar 2004 16:53:21 -  1.8
  @@ -11,7 +11,7 @@
   var focusField = null;
   var i = 0;
   var fields = new Array();
  -var formName = getAttribute(form,name);
  +var formName = form.getAttributeNode(name);
   
   oCreditCard = eval('new ' + formName.value + '_creditCard()');
   
  
  
  
  1.10  +2 -2  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateDate.js
  
  Index: validateDate.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateDate.js,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- validateDate.js   25 Mar 2004 04:56:11 -  1.9
  +++ validateDate.js   28 Mar 2004 16:53:21 -  1.10
  @@ -11,7 +11,7 @@
  var focusField = null;
  var i = 0;
  var fields = new Array();
  -   var formName = getAttribute(form,name);
  +   var formName = form.getAttributeNode(name); 
   
  oDate = eval('new ' + formName.value + '_DateValidations()');
   
  
  
  
  1.9   +6 -3  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateEmail.js
  
  Index: validateEmail.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateEmail.js,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- validateEmail.js  25 Mar 2004 04:56:11 -  1.8
  +++ validateEmail.js  28 Mar 2004 16:53:21 -  1.9
  @@ -11,7 +11,8 @@
   var focusField = null;
   var i = 0;
   var fields = new Array();
  -var formName = getAttribute(form,name);
  +var formName = form.getAttributeNode(name);
  +
   
   oEmail = eval('new ' + formName.value + '_email()');
   
  @@ -88,4 +89,6 @@
  return false;
  }
  return true;
  -}
  \ No newline at end of file
  +}
  +
  +  
  \ No newline at end of file
  
  
  
  1.11  +2 -2  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloat.js
  
  Index: validateFloat.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloat.js,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- validateFloat.js  25 Mar 2004 04:56:11 -  1.10
  +++ validateFloat.js  28 Mar 2004 16:53:21 -  1.11
  @@ -11,7 +11,7 @@
   var focusField = null;
   var i = 0;
   var fields = new Array();
  -var formName = getAttribute(form,name);
  + var formName

cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript validateUtilities.js validateByte.js validateCreditCard.js validateDate.js validateEmail.js validateFloat.js validateFloatRange.js validateIntRange.js validateInteger.js validateMask.js validateMaxLength.js validateMinLength.js validateRequired.js validateShort.js

2004-03-24 Thread rleland
rleland 2004/03/24 20:56:12

  Modified:validator/src/javascript/org/apache/commons/validator/javascript
validateByte.js validateCreditCard.js
validateDate.js validateEmail.js validateFloat.js
validateFloatRange.js validateIntRange.js
validateInteger.js validateMask.js
validateMaxLength.js validateMinLength.js
validateRequired.js validateShort.js
  Added:   validator/src/javascript/org/apache/commons/validator/javascript
validateUtilities.js
  Log:
  Bug#: 27899
  Add function to get an objects attribute if hidden by
  an html element, in this case the forms name attrubute.
  Have validator bring in Utility functions.
  
  Revision  ChangesPath
  1.8   +4 -2  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateByte.js
  
  Index: validateByte.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateByte.js,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- validateByte.js   8 Mar 2004 23:24:25 -   1.7
  +++ validateByte.js   25 Mar 2004 04:56:11 -  1.8
  @@ -11,7 +11,9 @@
   var focusField = null;
   var i = 0;
   var fields = new Array();
  -oByte = eval('new ' + form.name + '_ByteValidations()');
  +var formName = getAttribute(form,name);
  +
  +oByte = eval('new ' + formName.value + '_ByteValidations()');
   
   for (x in oByte) {
   var field = form[oByte[x][0]];
  
  
  
  1.7   +4 -2  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js
  
  Index: validateCreditCard.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- validateCreditCard.js 8 Mar 2004 23:24:25 -   1.6
  +++ validateCreditCard.js 25 Mar 2004 04:56:11 -  1.7
  @@ -11,7 +11,9 @@
   var focusField = null;
   var i = 0;
   var fields = new Array();
  -oCreditCard = eval('new ' + form.name + '_creditCard()');
  +var formName = getAttribute(form,name);
  +
  +oCreditCard = eval('new ' + formName.value + '_creditCard()');
   
   for (x in oCreditCard) {
   if ((form[oCreditCard[x][0]].type == 'text' ||
  
  
  
  1.9   +4 -2  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateDate.js
  
  Index: validateDate.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateDate.js,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- validateDate.js   8 Mar 2004 23:24:25 -   1.8
  +++ validateDate.js   25 Mar 2004 04:56:11 -  1.9
  @@ -11,7 +11,9 @@
  var focusField = null;
  var i = 0;
  var fields = new Array();
  -   oDate = eval('new ' + form.name + '_DateValidations()');
  +   var formName = getAttribute(form,name);
  +
  +   oDate = eval('new ' + formName.value + '_DateValidations()');
   
  for (x in oDate) {
  var field = form[oDate[x][0]];
  
  
  
  1.8   +4 -2  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateEmail.js
  
  Index: validateEmail.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateEmail.js,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- validateEmail.js  8 Mar 2004 23:24:25 -   1.7
  +++ validateEmail.js  25 Mar 2004 04:56:11 -  1.8
  @@ -11,7 +11,9 @@
   var focusField = null;
   var i = 0;
   var fields = new Array();
  -oEmail = eval('new ' + form.name + '_email()');
  +var formName = getAttribute(form,name);
  +
  +oEmail = eval('new ' + formName.value + '_email()');
   
   for (x in oEmail) {
   var field = form[oEmail[x][0]];
  
  
  
  1.10  +4 -2  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloat.js
  
  Index: validateFloat.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloat.js,v
  retrieving revision 1.9
  retrieving revision

cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript validateByte.js validateCreditCard.js validateDate.js validateEmail.js validateFloat.js validateFloatRange.js validateIntRange.js validateInteger.js validateMask.js validateMaxLength.js validateMinLength.js validateRequired.js validateShort.js

2004-03-08 Thread rleland
rleland 2004/03/08 15:24:25

  Modified:validator/src/javascript/org/apache/commons/validator/javascript
validateByte.js validateCreditCard.js
validateDate.js validateEmail.js validateFloat.js
validateFloatRange.js validateIntRange.js
validateInteger.js validateMask.js
validateMaxLength.js validateMinLength.js
validateRequired.js validateShort.js
  Log:
  Bug 17667 Patch and bug report by Alexander Merk
  This allows multiple forms to be on the same page
  by generating a unique variable name based on form name.
  
  Revision  ChangesPath
  1.7   +3 -2  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateByte.js
  
  Index: validateByte.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateByte.js,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- validateByte.js   2 Feb 2004 23:58:52 -   1.6
  +++ validateByte.js   8 Mar 2004 23:24:25 -   1.7
  @@ -11,7 +11,8 @@
   var focusField = null;
   var i = 0;
   var fields = new Array();
  -oByte = new ByteValidations();
  +oByte = eval('new ' + form.name + '_ByteValidations()');
  +
   for (x in oByte) {
   var field = form[oByte[x][0]];
   
  
  
  
  1.6   +3 -2  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js
  
  Index: validateCreditCard.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- validateCreditCard.js 15 Dec 2003 02:56:57 -  1.5
  +++ validateCreditCard.js 8 Mar 2004 23:24:25 -   1.6
  @@ -11,7 +11,8 @@
   var focusField = null;
   var i = 0;
   var fields = new Array();
  -oCreditCard = new creditCard();
  +oCreditCard = eval('new ' + form.name + '_creditCard()');
  +
   for (x in oCreditCard) {
   if ((form[oCreditCard[x][0]].type == 'text' ||
form[oCreditCard[x][0]].type == 'textarea') 
  
  
  
  1.8   +3 -2  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateDate.js
  
  Index: validateDate.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateDate.js,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- validateDate.js   2 Feb 2004 23:58:52 -   1.7
  +++ validateDate.js   8 Mar 2004 23:24:25 -   1.8
  @@ -11,7 +11,8 @@
  var focusField = null;
  var i = 0;
  var fields = new Array();
  -   oDate = new DateValidations();
  +   oDate = eval('new ' + form.name + '_DateValidations()');
  +
  for (x in oDate) {
  var field = form[oDate[x][0]];
  var value = field.value;
  
  
  
  1.7   +3 -2  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateEmail.js
  
  Index: validateEmail.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateEmail.js,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- validateEmail.js  2 Feb 2004 23:58:52 -   1.6
  +++ validateEmail.js  8 Mar 2004 23:24:25 -   1.7
  @@ -11,7 +11,8 @@
   var focusField = null;
   var i = 0;
   var fields = new Array();
  -oEmail = new email();
  +oEmail = eval('new ' + form.name + '_email()');
  +
   for (x in oEmail) {
   var field = form[oEmail[x][0]];
   if ((field.type == 'hidden' || 
  
  
  
  1.9   +2 -2  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloat.js
  
  Index: validateFloat.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloat.js,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- validateFloat.js  2 Feb 2004 23:58:52 -   1.8
  +++ validateFloat.js  8 Mar 2004 23:24:25 -   1.9
  @@ -11,7 +11,7 @@
   var focusField = null;
   var i = 0;
   var fields = new Array();
  -oFloat = new FloatValidations();
  +oFloat

cvs commit: jakarta-commons/validator/xdocs index.xml navigation.xml

2004-03-02 Thread rleland
rleland 2004/03/02 08:19:09

  Modified:validator/xdocs index.xml navigation.xml
  Log:
  Add section on releases
  
  Revision  ChangesPath
  1.3   +10 -2 jakarta-commons/validator/xdocs/index.xml
  
  Index: index.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/xdocs/index.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- index.xml 29 Feb 2004 09:48:28 -  1.2
  +++ index.xml 2 Mar 2004 16:19:09 -   1.3
  @@ -18,8 +18,8 @@
   document
   
 properties
  -titleHome/title
  -author email=[EMAIL PROTECTED]Martin Cooper/author
  +titleCommons/title
  +author email=[EMAIL PROTECTED]Commons Documentation Team/author
 /properties
   
 body
  @@ -62,6 +62,14 @@
   For more information, see the a href=apidocs/index.htmlJavaDocs/a.
 /p
   
  +/section
  +section name=Releases
  +  ul
  +liVersion 1.0.2 (from mirror) - 4 Apr 2003
  +  a href=http://jakarta.apache.org/site/binindex.cgi;binary/a
  +  a href=http://jakarta.apache.org/site/sourceindex.cgi;source/a 
(latest)
  +/li
  +  /ul
   /section
   
 /body
  
  
  
  1.6   +1 -0  jakarta-commons/validator/xdocs/navigation.xml
  
  Index: navigation.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/xdocs/navigation.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- navigation.xml2 Mar 2004 03:27:47 -   1.5
  +++ navigation.xml2 Mar 2004 16:19:09 -   1.6
  @@ -27,6 +27,7 @@
 item name=To Do List  href=/tasks.html/
 item name=Resources   href=/resources.html/
 item name=Javascript Javadoc  
href=/javascript/org/apache/commons/validator/javascript/allclasses-summary.html/
  +  item name=Download
href=http://jakarta.apache.org/site/binindex.cgi/
 item name=Legacy 1.0.2
href=/1.0.2/api/org/apache/commons/validator/package-summary.html/
   /menu
   
  
  
  

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



cvs commit: jakarta-commons/validator/src/test/org/apache/commons/validator/util FlagsTest.java

2004-02-21 Thread rleland
rleland 2004/02/21 09:10:30

  Modified:validator LICENSE.txt
   validator/etc jsdoc.sh
   validator/src/example/org/apache/commons/validator/example
ValidateBean.java ValidateExample.java
   validator/src/share/org/apache/commons/validator Arg.java
Constant.java CreditCardValidator.java
DateValidator.java EmailValidator.java Field.java
Form.java FormSet.java GenericTypeValidator.java
GenericValidator.java Msg.java UrlValidator.java
Validator.java ValidatorAction.java
ValidatorException.java ValidatorResources.java
ValidatorResourcesInitializer.java
ValidatorResult.java ValidatorResults.java
ValidatorUtil.java Var.java
   validator/src/share/org/apache/commons/validator/util
Flags.java ValidatorUtils.java
   validator/src/test/org/apache/commons/validator
ByteTest.java CreditCardValidatorTest.java
DoubleTest.java EmailTest.java ExceptionTest.java
FieldTest.java FloatTest.java IntegerTest.java
LocaleTest.java LongTest.java
MultipleConfigFilesTest.java MultipleTests.java
NameBean.java RequiredIfTest.java
RequiredNameTest.java ShortTest.java
TestCommon.java TestNumber.java TestPair.java
TestTypeValidator.java TestValidator.java
TypeBean.java TypeTest.java UrlTest.java
ValidatorTest.java ValidatorTestSuite.java
ValueBean.java
   validator/src/test/org/apache/commons/validator/util
FlagsTest.java
  Log:
  Update to Apache License. 2.0 The ptyhon script worked 100 % on jav a code
  and only removed the #!/bin/sh on shell code, very nice !
  
  Revision  ChangesPath
  1.4   +15 -55jakarta-commons/validator/LICENSE.txt
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/LICENSE.txt.diff?r1=1.3r2=1.4
  
  
  1.3   +19 -1 jakarta-commons/validator/etc/jsdoc.sh
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/etc/jsdoc.sh.diff?r1=1.2r2=1.3
  
  
  1.4   +15 -55
jakarta-commons/validator/src/example/org/apache/commons/validator/example/ValidateBean.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/example/org/apache/commons/validator/example/ValidateBean.java.diff?r1=1.3r2=1.4
  
  
  1.17  +15 -55
jakarta-commons/validator/src/example/org/apache/commons/validator/example/ValidateExample.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/example/org/apache/commons/validator/example/ValidateExample.java.diff?r1=1.16r2=1.17
  
  
  1.17  +15 -55
jakarta-commons/validator/src/share/org/apache/commons/validator/Arg.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Arg.java.diff?r1=1.16r2=1.17
  
  
  1.10  +15 -55
jakarta-commons/validator/src/share/org/apache/commons/validator/Constant.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Constant.java.diff?r1=1.9r2=1.10
  
  
  1.16  +15 -55
jakarta-commons/validator/src/share/org/apache/commons/validator/CreditCardValidator.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/CreditCardValidator.java.diff?r1=1.15r2=1.16
  
  
  1.6   +15 -55
jakarta-commons/validator/src/share/org/apache/commons/validator/DateValidator.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/DateValidator.java.diff?r1=1.5r2=1.6
  
  
  1.12  +15 -55
jakarta-commons/validator/src/share/org/apache/commons/validator/EmailValidator.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/EmailValidator.java.diff?r1=1.11r2=1.12
  
  
  1.31  +15 -55
jakarta-commons/validator/src/share/org/apache/commons/validator/Field.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Field.java.diff?r1=1.30r2=1.31
  
  
  1.14  +15 -55
jakarta-commons/validator/src/share/org/apache/commons/validator/Form.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Form.java.diff?r1=1.13r2=1.14
  
  
  1.15  +15 -55
jakarta-commons/validator/src/share/org/apache/commons/validator/FormSet.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/FormSet.java.diff?r1=1.14r2=1.15
  
  
  1.13  +15 -55

cvs commit: jakarta-commons/validator/conf/share validator_1_1_2.dtd

2004-02-02 Thread rleland
rleland 2004/02/02 16:38:17

  Added:   validator/conf/share validator_1_1_2.dtd
  Log:
  Add place holder to turn off client or server validation.
  For client side validation it up to the frameworks like
  struts to honor this flag.
  
  Revision  ChangesPath
  1.1  jakarta-commons/validator/conf/share/validator_1_1_2.dtd
  
  Index: validator_1_1_2.dtd
  ===
  !--
  DTD for the Validator Rules Configuration File, Version 1.1.2
  
  To allow for XML validation of your rules configuration
  file, include the following DOCTYPE element at the beginning (after
  the xml declaration):
  
  !DOCTYPE form-validation PUBLIC
   -//Apache Software Foundation//DTD Commons Validator Rules Configuration 
1.1.2//EN
   http://jakarta.apache.org/commons/dtds/validator_1_1_2.dtd;
  
  $Id: validator_1_1_2.dtd,v 1.1 2004/02/03 00:38:16 rleland Exp $
  --
  
  
  
  !--
   The form-validation element is the root of the configuration file
   hierarchy, and contains nested elements for all of the other
   configuration settings.
  --
  !ELEMENT form-validation (global*, formset*)
  
  
  !--
  The elements defined here are all global and must be nested within a
  global element.
  --
  !ELEMENT global (validator*, constant*)
  
  
  !--
   The validator element defines what validator objects can be used with
   the fields referenced by the formset elements.
   elements:
 validator Defines a new validatior
 javascriptThe javascript source code for client side validation.
   attributes:
   nameThe name of this validation
   classname   The java class name that handles server side validation
   method  The java method that handles server side validation
   methodParamsThe java class types passed to the serverside method
   msg a generic message key to use when this validator fails.
   It can be overridden by the 'msg' element for a specific 
field.
   depends The comma-delimited list of validator that are called 
before this validator.
   For this validation to succeed, all the listed validators 
must succeed.
   disable Disable validation on client, server, or both. possible 
values: {|client|server}.
   The default is for validation to occur on both the client 
and server.
   A comma must be used to separate the list e.g. 
client,server if both client
   and server validation is disabled. If this validation is 
listed in the depends
   of another validation the disabled validation will be 
treated as if it passed.
   jsFunctionName  The name of the javascript function which returns all 
fields of a certain type.
   jsFunction  The name of the javascript function which is passed the 
form for validation.
  
  --
  !ELEMENT validator (javascript?)
  !ATTLIST validator name CDATA #REQUIRED
  !ATTLIST validator classname CDATA #REQUIRED
  !ATTLIST validator method CDATA #REQUIRED
  !ATTLIST validator methodParams CDATA #REQUIRED
  !ATTLIST validator msg CDATA #REQUIRED
  !ATTLIST validator depends CDATA #IMPLIED
  !ATTLIST validator disable CDATA #IMPLIED
  !ATTLIST validator jsFunctionName CDATA #IMPLIED
  !ATTLIST validator jsFunction CDATA #IMPLIED
  
  
  
  !--
   The javascript element defines a JavaScript that can be used to perform
   client-side validators.
  --
  !ELEMENT javascript (#PCDATA)
  
  
  !--
   The constant element defines a static value that can be used as
   replacement parameters within field elements. The constant-name and
   constant-value elements define the constant's reference id and replacement
   value.
  --
  !ELEMENT constant (constant-name, constant-value)
  !ELEMENT constant-name  (#PCDATA)
  !ELEMENT constant-value (#PCDATA)
  
  
  !--
The formset element defines a set of forms for a locale. Formsets for
specific locales can override only those fields that change. The
localization is properly scoped, so that a formset can override just the
language, or just the country, or both.
  --
  !ELEMENT formset (constant*, form+)
  !ATTLIST formset language CDATA #IMPLIED
  !ATTLIST formset country CDATA #IMPLIED
  !ATTLIST formset variant CDATA #IMPLIED
  
  
  !--
   The form element defines a set of fields to be validated. The name
   corresponds to the identifier the application assigns to the form. 
  --
  !ELEMENT form (field+)
  !ATTLIST form name CDATA #REQUIRED
  
  
  !--
   The field element defines the properties to be validated. In a
   web application, a field would also correspond to a control on
   a HTML form. To validate the properties

cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript package.html validateMask.js

2004-02-02 Thread rleland
rleland 2004/02/02 18:15:42

  Modified:validator/src/javascript/org/apache/commons/validator/javascript
package.html validateMask.js
  Log:
  Bug 26585 Validate file extensions for file uploads
  
  Revision  ChangesPath
  1.4   +26 -10
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/package.html
  
  Index: package.html
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/package.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- package.html  2 Feb 2004 23:58:52 -   1.3
  +++ package.html  3 Feb 2004 02:15:42 -   1.4
  @@ -2,6 +2,11 @@
   html
   head
 titleValidator JavaScript package/title
  +  style type=text/css
  +!--
  +.style1 {color: #A0}
  +--
  +  /style
   /head
   body
   p The validator javascript package provides a series of functions to
  @@ -9,7 +14,7 @@
   br
   h2Package Specification/h2
   br
  -table cellpadding=2 cellspacing=2 border=1
  +table cellpadding=2 cellspacing=2 border=1 bordercolor=#00
style=text-align: left; width: 100%; height: 310px;
title=Input fields and their validations
   
  @@ -120,19 +125,20 @@
 /td
 td style=vertical-align: top;br
 /td
  -  td style=vertical-align: top;br
  +  td style=vertical-align: top;img align=MIDDLE alt=Yes 
src=doc-files/sm-yes.gif
  + style=width: 15px; height: 15px; span class=style11/spanbr
 /td
 td style=vertical-align: top;br
 /td
 td style=vertical-align: top;br
 /td
  -  td style=vertical-align: top;img src=doc-files/sm-yes.gif
  - alt=Yes style=width: 15px; height: 15px;/td
  +  td style=vertical-align: top;img align=MIDDLE
  + alt=Yes src=doc-files/sm-yes.gif style=width: 15px; height: 15px;/td
 td style=vertical-align: top;br
 /td
   /tr
   tr
  -  td style=vertical-align: top;hidden/td
  +  td style=vertical-align: top;hidden span class=style12/span /td
 td style=vertical-align: top;img
style=width: 15px; height: 15px; alt=Yes src=doc-files/sm-yes.gif/td
 td style=vertical-align: top;nbsp;/td
  @@ -339,11 +345,21 @@
   /tr
 /tbody
   /table
  -br
  -ul
  -  lia href=# REFER TO ANY FRAMEMAKER SPECIFICATION HERE #/a
  -  /li
  -/ul
  +pNotes/p
  +table width=1215 border=0
  +  tr
  +th width=17 scope=row1)/th
  +td width=8nbsp;/td
  +td width=1176pSince few browser support the 'accept' attribute for file 
upload input fields, a mask can be used to validate the uploaded file extension./p
  +  p/p/td
  +  /tr
  +  tr
  +th scope=row2)/th
  +tdnbsp;/td
  +td Hidden fields can be used with complicated HTML interface. like cascading 
inter-dependent menus. The menus themselves don't represent real data fields, but are 
used with javascript to set the value of a hidden field. /td
  +  /tr
  +/table
  +pnbsp;/p
   h2Related Documentation/h2
   For overviews, tutorials, examples, guides, and tool documentation,
   please see:
  
  
  
  1.7   +3 -2  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMask.js
  
  Index: validateMask.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMask.js,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- validateMask.js   2 Feb 2004 23:58:52 -   1.6
  +++ validateMask.js   3 Feb 2004 02:15:42 -   1.7
  @@ -17,7 +17,8 @@
   
   if ((field.type == 'hidden' ||
   field.type == 'text' ||
  - field.type == 'textarea') 
  + field.type == 'textarea' ||
  +  field.type == 'file') 
(field.value.length  0) 
field.disabled == false) {
   
  
  
  

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



cvs commit: jakarta-commons/validator project.xml

2004-01-29 Thread rleland
rleland 2004/01/29 11:14:46

  Modified:validator project.xml
  Log:
  Depend on latest released version of ORO
  
  Revision  ChangesPath
  1.32  +1 -1  jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- project.xml   11 Jan 2004 23:30:22 -  1.31
  +++ project.xml   29 Jan 2004 19:14:46 -  1.32
  @@ -236,7 +236,7 @@
   
   dependency
 idoro/id
  -  version2.0.7/version
  +  version2.0.8/version
 urlhttp://jakarta.apache.org/oro//url
   /dependency
   
  
  
  

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



cvs commit: jakarta-commons/validator/src/test/org/apache/commons/validator TestPair.java EmailTest.java UrlTest.java

2004-01-19 Thread rleland
rleland 2004/01/19 06:11:34

  Modified:validator/src/test/org/apache/commons/validator
EmailTest.java UrlTest.java
  Added:   validator/src/test/org/apache/commons/validator
TestPair.java
  Log:
  Add test for email address comments
  
  Revision  ChangesPath
  1.23  +134 -46   
jakarta-commons/validator/src/test/org/apache/commons/validator/EmailTest.java
  
  Index: EmailTest.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/EmailTest.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- EmailTest.java11 Jan 2004 23:30:21 -  1.22
  +++ EmailTest.java19 Jan 2004 14:11:33 -  1.23
  @@ -72,12 +72,12 @@
* Performs Validation Test for e-mail validations.
*/   
   public class EmailTest extends TestCommon {
  -   
  -   /**
  -* The key used to retrieve the set of validation 
  -* rules from the xml file.
  -*/
  -   protected static String FORM_KEY = emailForm;   
  +
  +/**
  + * The key used to retrieve the set of validation
  + * rules from the xml file.
  + */
  +protected static String FORM_KEY = emailForm;
   
  /**
   * The key used to retrieve the validator action.
  @@ -133,27 +133,27 @@
* Tests the e-mail validation.
*/
   public void testEmailExtension() throws ValidatorException {
  - // Create bean to run test on.
  - ValueBean info = new ValueBean();
  -
  - info.setValue([EMAIL PROTECTED]);
  - valueTest(info, true);
  -
  - info.setValue([EMAIL PROTECTED]);
  - valueTest(info, true);
  -
  - info.setValue([EMAIL PROTECTED]);
  - valueTest(info, true);
  -
  - info.setValue([EMAIL PROTECTED]);
  - valueTest(info, true);
  -
  - info.setValue([EMAIL PROTECTED]);
  - valueTest(info, false);
  -
  +// Create bean to run test on.
  +ValueBean info = new ValueBean();
  +
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, true);
  +
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, true);
  +
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, true);
  +
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, true);
  +
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, false);
  +
   info.setValue([EMAIL PROTECTED]);
   valueTest(info, false);
  -
  +
   info.setValue([EMAIL PROTECTED]);
   valueTest(info, false);
   }
  @@ -193,20 +193,20 @@
  }
   
   /**
  - * pTests the e-mail validation with an RCS-noncompliant character in 
  + * pTests the e-mail validation with an RCS-noncompliant character in
* the address./p
*/
   public void testEmailWithBogusCharacter() throws ValidatorException {
  - // Create bean to run test on.
  - ValueBean info = new ValueBean();
  -
  - info.setValue([EMAIL PROTECTED]);
  - valueTest(info, false);
  +// Create bean to run test on.
  +ValueBean info = new ValueBean();
  +
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, false);
   
   // The ' character is valid in an email address.
  - info.setValue(andy.o'[EMAIL PROTECTED]);
  - valueTest(info, true);
  -
  +info.setValue(andy.o'[EMAIL PROTECTED]);
  +valueTest(info, true);
  +
   info.setValue([EMAIL PROTECTED]);
   valueTest(info, true);
   }
  @@ -215,11 +215,11 @@
   * Tests the email validation with commas.
   */
   public void testEmailWithCommas() throws ValidatorException {
  -   ValueBean info = new ValueBean();
  -   info.setValue([EMAIL PROTECTED],che.org);
  -   valueTest(info, false);
  -   info.setValue([EMAIL PROTECTED],rg);
  -   valueTest(info, false);
  +ValueBean info = new ValueBean();
  +info.setValue([EMAIL PROTECTED],che.org);
  +valueTest(info, false);
  +info.setValue([EMAIL PROTECTED],rg);
  +valueTest(info, false);
   info.setValue([EMAIL PROTECTED],org);
   valueTest(info, false);
   
  @@ -231,9 +231,9 @@
* @throws ValidatorException
*/
   public void testEmailUserName() throws ValidatorException {
  -   ValueBean info = new ValueBean();
  -   info.setValue([EMAIL PROTECTED]);
  -   valueTest(info, true);
  +ValueBean info = new ValueBean();
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, true);
   info.setValue([EMAIL PROTECTED]);
   valueTest(info, true);
   info.setValue([EMAIL PROTECTED]);
  @@ -300,7 +300,95 @@
   
   }
   
  +/**
  + * These test

cvs commit: jakarta-commons/validator project.xml

2004-01-05 Thread rleland
rleland 2004/01/05 21:09:01

  Modified:validator project.xml
  Log:
  Remove references to nagoya
  and use issues and mail-archive instead.
  
  Revision  ChangesPath
  1.30  +3 -3  jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- project.xml   15 Dec 2003 09:24:11 -  1.29
  +++ project.xml   6 Jan 2004 05:09:01 -   1.30
  @@ -24,7 +24,7 @@
 urlhttp://jakarta.apache.org/commons/validator//url
 gumpRepositoryIdjakarta/gumpRepositoryId
   
  -  issueTrackingUrlhttp://nagoya.apache.org/bugzilla//issueTrackingUrl
  +  issueTrackingUrlhttp://issues.apache.org/bugzilla//issueTrackingUrl
 siteAddressjakarta.apache.org/siteAddress
 
 repository
  @@ -40,13 +40,13 @@
 nameCommons Dev List/name
 subscribe[EMAIL PROTECTED]/subscribe
 unsubscribe[EMAIL PROTECTED]/unsubscribe
  -  archivehttp://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]/archive
  +  archivehttp://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]/archive
   /mailingList
   mailingList
 nameCommons User List/name
 subscribe[EMAIL PROTECTED]/subscribe
 unsubscribe[EMAIL PROTECTED]/unsubscribe
  -  archivehttp://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]/archive
  +  archivehttp://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]/archive
   /mailingList
 /mailingLists
   
  
  
  

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



cvs commit: jakarta-commons/validator/etc jsdoc.sh

2003-12-15 Thread rleland
rleland 2003/12/15 00:09:56

  Modified:validator/etc jsdoc.sh
  Log:
  Change so CVS directory not copied.
  
  Revision  ChangesPath
  1.2   +2 -1  jakarta-commons/validator/etc/jsdoc.sh
  
  Index: jsdoc.sh
  ===
  RCS file: /home/cvs/jakarta-commons/validator/etc/jsdoc.sh,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- jsdoc.sh  15 Dec 2003 06:10:51 -  1.1
  +++ jsdoc.sh  15 Dec 2003 08:09:56 -  1.2
  @@ -5,4 +5,5 @@
   package=/org/apache/commons/validator/javascript
   perl ${cmdpath}/jsdoc.pl --project-summary ${dirtoprocess}${package}/package.html 
--project-name Package org.apache.commons.validator.javascript --page-footer 
Copyright © 2000-2003 - Apache Software Foundation
-d ${outputto}/${package} -r $dirtoprocess
  -cp -R ${dirtoprocess}/${package}/doc-files $outputto/${package}
  +mkdir $outputto/${package}/doc-files
  +cp ${dirtoprocess}/${package}/doc-files/*.* $outputto/${package}/doc-files
  
  
  

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



cvs commit: jakarta-commons/validator build.xml project.xml

2003-12-15 Thread rleland
rleland 2003/12/15 01:24:11

  Modified:validator build.xml project.xml
  Log:
  Rev version to 1.1.2-dev. If 1.1.1 is voted to Beta status
  then we can go to 1.2.0 and rip out the old api's.
  
  Revision  ChangesPath
  1.30  +2 -2  jakarta-commons/validator/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/build.xml,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- build.xml 15 Dec 2003 06:10:51 -  1.29
  +++ build.xml 15 Dec 2003 09:24:11 -  1.30
  @@ -52,7 +52,7 @@
 property name=component.title value=Validator/
   
 !-- The current version number of this component --
  -  property name=component.version   value=1.1.1/
  +  property name=component.version   value=1.1.2-dev/
   
 !-- The base directory for compilation targets --
 property name=build.home  value=target/
  
  
  
  1.29  +1 -1  jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- project.xml   15 Dec 2003 02:56:57 -  1.28
  +++ project.xml   15 Dec 2003 09:24:11 -  1.29
  @@ -3,7 +3,7 @@
   project
 nameValidator/name
 idcommons-validator/id
  -  currentVersion1.1.1/currentVersion
  +  currentVersion1.1.2-dev/currentVersion
   
 organization
   nameApache Software Foundation/name
  
  
  

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



cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript package.html validateByte.js validateCreditCard.js validateDate.js validateEmail.js validateFloat.js validateFloatRange.js validateIntRange.js validateInteger.js validateMask.js validateMaxLength.js validateMinLength.js validateRequired.js validateShort.js

2003-12-14 Thread rleland
rleland 2003/12/14 18:56:57

  Modified:validator build.xml project.xml
   validator/src/javascript/org/apache/commons/validator/javascript
validateByte.js validateCreditCard.js
validateDate.js validateEmail.js validateFloat.js
validateFloatRange.js validateIntRange.js
validateInteger.js validateMask.js
validateMaxLength.js validateMinLength.js
validateRequired.js validateShort.js
  Added:   validator/src/javascript/org/apache/commons/validator/javascript
package.html
  Removed: validator RELEASE-NOTES-1.0.2.txt RELEASE-NOTES-1.0.txt
RELEASE-NOTES.txt
  Log:
  Add javadoc to javascript
  
  Revision  ChangesPath
  1.28  +1 -3  jakarta-commons/validator/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/build.xml,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- build.xml 14 Sep 2003 02:53:15 -  1.27
  +++ build.xml 15 Dec 2003 02:56:57 -  1.28
  @@ -248,8 +248,6 @@
   mkdir  dir=${dist.home}/
   copy  file=LICENSE.txt
 todir=${dist.home}/
  -copy  file=RELEASE-NOTES-1.0.2.txt
  -  todir=${dist.home}/
   mkdir  dir=${build.home}/classes/META-INF/
   copy  file=LICENSE.txt
tofile=${build.home}/classes/META-INF/LICENSE.txt/
  
  
  
  1.28  +1 -1  jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- project.xml   29 Nov 2003 19:24:29 -  1.27
  +++ project.xml   15 Dec 2003 02:56:57 -  1.28
  @@ -3,7 +3,7 @@
   project
 nameValidator/name
 idcommons-validator/id
  -  currentVersion1.1.1-dev/currentVersion
  +  currentVersion1.1.1/currentVersion
   
 organization
   nameApache Software Foundation/name
  
  
  
  1.5   +7 -4  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateByte.js
  
  Index: validateByte.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateByte.js,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- validateByte.js   17 Nov 2003 04:57:50 -  1.4
  +++ validateByte.js   15 Dec 2003 02:56:57 -  1.5
  @@ -1,8 +1,11 @@
   
  -  //$Header$
  -  //$Revision$
  -  //$Date$
  -
  +/*$RCSfile$ $Revision$ $Date$ */
  +/**
  +* Check to see if fields are a valid byte.
  +* Fields are not checked if they are disabled.
  +* p
  +* @param form The form validation is taking place on.
  +*/
   function validateByte(form) {
   var bValid = true;
   var focusField = null;
  
  
  
  1.5   +10 -5 
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js
  
  Index: validateCreditCard.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- validateCreditCard.js 17 Nov 2003 04:57:50 -  1.4
  +++ validateCreditCard.js 15 Dec 2003 02:56:57 -  1.5
  @@ -1,8 +1,11 @@
   
  -  //$Header$
  -  //$Revision$
  -  //$Date$
  -
  +/*$RCSfile$ $Revision$ $Date$ */
  +/**
  +* Check to see if fields are a valid creditcard number based on Luhn checksum.
  +* Fields are not checked if they are disabled.
  +* p
  +* @param form The form validation is taking place on.
  +*/
   function validateCreditCard(form) {
   var bValid = true;
   var focusField = null;
  @@ -31,7 +34,9 @@
   }
   
   /**
  - * Reference: http://www.ling.nwu.edu/~sburke/pub/luhn_lib.pl
  + * Checks whether a given credit card number has a valid Luhn checksum.
  + * This allows you to spot most randomly made-up or garbled credit card numbers 
immediately.
  + * Reference: http://www.speech.cs.cmu.edu/~sburke/pub/luhn_lib.html
*/
   function luhnCheck(cardNumber) {
   if (isLuhnNum(cardNumber)) {
  
  
  
  1.6   +7 -5  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateDate.js
  
  Index: validateDate.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src

cvs commit: jakarta-commons/validator/etc - New directory

2003-12-14 Thread rleland
rleland 2003/12/14 21:56:07

  jakarta-commons/validator/etc - New directory

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



cvs commit: jakarta-commons/validator/xdocs tasks.xml

2003-12-14 Thread rleland
rleland 2003/12/14 22:10:51

  Modified:validator build.properties.sample build.xml
   validator/src/javascript/org/apache/commons/validator/javascript
package.html
   validator/xdocs tasks.xml
  Added:   validator RELEASE-NOTES.readme
   validator/etc jsdoc.sh
  Log:
  Add ant tasks to generate javadoc for javascript,
  works on unix and windows machines that have cygwin.
  Won't cause build to fail if cygwin not installed.
  
  Revision  ChangesPath
  1.10  +15 -4 jakarta-commons/validator/build.properties.sample
  
  Index: build.properties.sample
  ===
  RCS file: /home/cvs/jakarta-commons/validator/build.properties.sample,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- build.properties.sample   15 Oct 2003 04:15:40 -  1.9
  +++ build.properties.sample   15 Dec 2003 06:10:51 -  1.10
  @@ -31,8 +31,12 @@
   # JUnit Unit Testing (http://www.junit.org)
   junit.jar=D:/java/Lib/junit3.8.1/junit.jar
   
  -# Just needed for building the Javadocs
  +# Needed for building the Javadocs
   xerces.jar=${apache.dir}/xerces-1_4_2/xerces.jar
  +
  +# jsdoc 1.5.2 or Newer is needed for building the Javascript Javadocs
  +jsdoc.home=/cygdrive/d/Projects/Sourceforge/JsDoc/JSDoc-1.5.2
  +
   #Maven Variables ###
   # CVS Start Change Log date
   maven.changelog.range=2000
  @@ -40,4 +44,11 @@
   
   # If you are using ssh tunneling  have a .cvspass file setup
   cvs.developer.host=localhost
  +# Maven deploy user
   cvs.developer.id=rleland
  +
  + Maven Variables located in your $HOME/build.properties 
  +# maven.username=rleland
  +# maven.mode.online=true
  +# maven.debugOn=true
  +
  
  
  
  1.29  +8 -3  jakarta-commons/validator/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/build.xml,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- build.xml 15 Dec 2003 02:56:57 -  1.28
  +++ build.xml 15 Dec 2003 06:10:51 -  1.29
  @@ -52,7 +52,7 @@
 property name=component.title value=Validator/
   
 !-- The current version number of this component --
  -  property name=component.version   value=1.1.1-dev/
  +  property name=component.version   value=1.1.1/
   
 !-- The base directory for compilation targets --
 property name=build.home  value=target/
  @@ -228,8 +228,11 @@
   version=true
  doctitle=lt;h1gt;${component.title} (Version 
${component.version})lt;/h1gt;
   windowtitle=${component.title} (Version ${component.version})
  - bottom=Copyright (c) 2001-2002 - Apache Software Foundation
  + bottom=Copyright (c) 2001-2004  Apache Software Foundation
  classpathref=compile.classpath /
  +exec  executable=bash failifexecutionfails=false
  + arg line=-c 'etc/jsdoc.sh ${jsdoc.home} ${javascript.home} 
${dist.home}/docs/api ' /
  +/exec
 /target
 
 target name=change-log 
  @@ -247,6 +250,8 @@
  description=Create binary distribution
   mkdir  dir=${dist.home}/
   copy  file=LICENSE.txt
  +  todir=${dist.home}/
  +copy  file=RELEASE-NOTES.readme
 todir=${dist.home}/
   mkdir  dir=${build.home}/classes/META-INF/
   copy  file=LICENSE.txt
  
  
  
  1.1  jakarta-commons/validator/RELEASE-NOTES.readme
  
  Index: RELEASE-NOTES.readme
  ===
  For release notes on what has changed see:
  
 http://jakarta.apache.org/commons/validator/changelog-report.html
  
  and
  
 http://jakarta.apache.org/commons/validator/tasks.html
  
  
  1.1  jakarta-commons/validator/etc/jsdoc.sh
  
  Index: jsdoc.sh
  ===
  #!/bin/sh
  cmdpath=$1
  dirtoprocess=$2
  outputto=$3
  package=/org/apache/commons/validator/javascript
  perl ${cmdpath}/jsdoc.pl --project-summary ${dirtoprocess}${package}/package.html 
--project-name Package org.apache.commons.validator.javascript --page-footer 
Copyright © 2000-2003 - Apache Software Foundation
   -d ${outputto}/${package} -r $dirtoprocess
  cp -R ${dirtoprocess}/${package}/doc-files $outputto/${package}
  
  
  
  1.2   +101 -686  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/package.html
  
  Index: package.html
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/package.html,v
  retrieving revision 1.1
  retrieving revision

cvs commit: jakarta-commons/validator/xdocs navigation.xml tasks.xml

2003-12-14 Thread rleland
rleland 2003/12/14 22:34:35

  Modified:validator/xdocs navigation.xml tasks.xml
  Log:
  Doc a few items
  
  Revision  ChangesPath
  1.3   +1 -0  jakarta-commons/validator/xdocs/navigation.xml
  
  Index: navigation.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/xdocs/navigation.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- navigation.xml22 Aug 2003 04:15:48 -  1.2
  +++ navigation.xml15 Dec 2003 06:34:35 -  1.3
  @@ -10,6 +10,7 @@
 item name=Community   href=/community.html/
 item name=To Do List  href=/tasks.html/
 item name=Resources   href=/resources.html/
  +  item name=Javascript Javadoc  
href=/javascript/org/apache/commons/validator/javascript/allclasses-summary.html/
 item name=Legacy 1.0.2
href=/1.0.2/api/org/apache/commons/validator/package-summary.html/
   /menu
 /body
  
  
  
  1.7   +9 -2  jakarta-commons/validator/xdocs/tasks.xml
  
  Index: tasks.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/xdocs/tasks.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- tasks.xml 15 Dec 2003 06:10:51 -  1.6
  +++ tasks.xml 15 Dec 2003 06:34:35 -  1.7
  @@ -24,6 +24,12 @@
   
   subsection name=Medium priority 
 ul
  +li
  +Integrate the creation of javascript javadocs into the maven build. 
What will need to happen
  +is something similar to the exec task in the ant build.xml. Then to put 
a Maven template around
  +the javadoc it and the legacy 1.0.2 javadoc will need to be copied to a 
temporary directory then the
  +html2xdoc task will need to be run against that temporary directory.
  +/li
li
Change the validation.xml file semantics to match a more 
general bean validation usage.
Currently, the lt;form-validationgt;, lt;formsetgt;, 
lt;formgt;, and lt;fieldgt; elements
  @@ -32,7 +38,7 @@
non-form based environments.
/li
li
  - Scenario one:
  + Scenario one:
Replace the Jakarta ORO regex engine with the standard Java 
1.4 engine.  Preliminary tests show a 
50% speed improvement using the standard engine.  This will 
remove the ORO dependency and
bring Validator in line with standard Java regular 
expressions.  However, this requires a move
  @@ -40,7 +46,7 @@
we also change the configuration file semantics.
/li
li
  - Much more likely Scenario:
  + More likely Scenario:
ORO provides a much richer interface to regular expression, 
such that we don't have
to worry about bit twiddling, this includes a pluggable regex 
engine. Jeffrey E Friedl states
in Mastering Regular Expressions 2ed, says that in speaking to 
the ORO developers that they
  @@ -84,6 +90,7 @@
li
  Add ability to use required condition on array types like checkboxes.
/li
  +/ul
   /subsection
   subsection name='Since 1.0.2 Release'
   ul
  
  
  

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



cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/doc-files - New directory

2003-12-14 Thread rleland
rleland 2003/12/14 22:42:52

  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/doc-files
 - New directory

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



cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/doc-files sm-maybe.gif sm-no.gif sm-yes.gif

2003-12-14 Thread rleland
rleland 2003/12/14 22:43:34

  Added:   
validator/src/javascript/org/apache/commons/validator/javascript/doc-files
sm-maybe.gif sm-no.gif sm-yes.gif
  Log:
  Add images to CVS for javadoc
  
  Revision  ChangesPath
  1.1  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/doc-files/sm-maybe.gif
  
Binary file
  
  
  1.1  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/doc-files/sm-no.gif
  
Binary file
  
  
  1.1  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/doc-files/sm-yes.gif
  
Binary file
  
  

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



cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator ValidatorAction.java

2003-11-16 Thread rleland
rleland 2003/11/16 19:34:50

  Modified:validator/src/share/org/apache/commons/validator
ValidatorAction.java
  Log:
  Bug 23972
  Non printing characters were coming from buffer not
  being read completely.
  
  I thought I checked this change in back in October,
  but it isn't in CVS.
  
  Revision  ChangesPath
  1.16  +13 -10
jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorAction.java
  
  Index: ValidatorAction.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorAction.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ValidatorAction.java  21 Aug 2003 21:43:05 -  1.15
  +++ ValidatorAction.java  17 Nov 2003 03:34:50 -  1.16
  @@ -440,18 +440,21 @@
   }
   
   if (is == null) {
  +log.debug(  Unable to read javascript name +javascriptFileName);
   return null;
   }
   
   StringBuffer function = new StringBuffer();
   try {
   int bufferSize = is.available();
  -
  +int bytesRead;
   while (bufferSize  0) {
   byte[] buffer = new byte[bufferSize];
  -is.read(buffer, 0, bufferSize);
  -String functionPart = new String(buffer);
  -function.append(functionPart);
  +bytesRead = is.read(buffer, 0, bufferSize);
  +if (bytesRead  0) {
  +String functionPart = new String(buffer,0,bytesRead);
  +function.append(functionPart);
  +}
   bufferSize = is.available();
   }
   
  @@ -465,8 +468,8 @@
   log.error(readJavascriptFile(), e);
   }
   }
  -
  -return function.toString().equals() ? null : function.toString();
  +String strFunction = function.toString();
  +return strFunction.equals() ? null : strFunction;
   }
   
   /**
  
  
  

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



cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator Field.java

2003-11-16 Thread rleland
rleland 2003/11/16 19:35:30

  Modified:validator/src/share/org/apache/commons/validator Field.java
  Log:
  Update JavaDocs
  
  Revision  ChangesPath
  1.27  +5 -4  
jakarta-commons/validator/src/share/org/apache/commons/validator/Field.java
  
  Index: Field.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Field.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- Field.java28 Sep 2003 20:39:57 -  1.26
  +++ Field.java17 Nov 2003 03:35:30 -  1.27
  @@ -258,6 +258,7 @@
   
   /**
* Sets the validation rules for this field as a comma separated list.
  + * @param depends A comma separated list of validator names.
*/
   public void setDepends(String depends) {
   this.depends = depends;
  
  
  

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



cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript validateByte.js validateCreditCard.js validateDate.js validateEmail.js validateFloat.js validateFloatRange.js validateIntRange.js validateInteger.js validateMask.js validateMaxLength.js validateMinLength.js validateRequired.js validateShort.js

2003-11-16 Thread rleland
rleland 2003/11/16 20:57:50

  Modified:validator/src/javascript/org/apache/commons/validator/javascript
validateByte.js validateCreditCard.js
validateDate.js validateEmail.js validateFloat.js
validateFloatRange.js validateIntRange.js
validateInteger.js validateMask.js
validateMaxLength.js validateMinLength.js
validateRequired.js validateShort.js
  Log:
  Bug 21043 Suggested fix by Colin Froggatt
  
  Ignore validation criteria when field is disabled.
  This was reported for mask but this was extended to all field types.
  
  Revision  ChangesPath
  1.4   +6 -5  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateByte.js
  
  Index: validateByte.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateByte.js,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- validateByte.js   22 Oct 2003 07:20:57 -  1.3
  +++ validateByte.js   17 Nov 2003 04:57:50 -  1.4
  @@ -12,10 +12,11 @@
   for (x in oByte) {
   var field = form[oByte[x][0]];
   
  -if (field.type == 'text' ||
  +if ((field.type == 'text' ||
   field.type == 'textarea' ||
   field.type == 'select-one' ||
  -field.type == 'radio') {
  +field.type == 'radio')  
  +field.disabled == false) {
   
   var value = '';
   // get field's value
  
  
  
  1.4   +5 -4  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js
  
  Index: validateCreditCard.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- validateCreditCard.js 22 Oct 2003 07:20:57 -  1.3
  +++ validateCreditCard.js 17 Nov 2003 04:57:50 -  1.4
  @@ -12,7 +12,8 @@
   for (x in oCreditCard) {
   if ((form[oCreditCard[x][0]].type == 'text' ||
form[oCreditCard[x][0]].type == 'textarea') 
  -(form[oCreditCard[x][0]].value.length  0)) {
  +(form[oCreditCard[x][0]].value.length  0)  
  + form[oCreditCard[x][0]].disabled == false) {
   if (!luhnCheck(form[oCreditCard[x][0]].value)) {
   if (i == 0) {
   focusField = form[oCreditCard[x][0]];
  
  
  
  1.5   +99 -97
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateDate.js
  
  Index: validateDate.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateDate.js,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- validateDate.js   22 Oct 2003 07:20:57 -  1.4
  +++ validateDate.js   17 Nov 2003 04:57:50 -  1.5
  @@ -16,67 +16,106 @@
  // try loose pattern
  if (datePattern == null)
  datePattern = oDate[x][2](datePattern);
  -   if ((form[oDate[x][0]].type == 'text' || form[oDate[x][0]].type == 
'textarea') 
  -   (value.length  0)  (datePattern.length  0)) {
  - var MONTH = MM;
  - var DAY = dd;
  - var YEAR = ;
  - var orderMonth = datePattern.indexOf(MONTH);
  - var orderDay = datePattern.indexOf(DAY);
  - var orderYear = datePattern.indexOf(YEAR);
  - if ((orderDay  orderYear  orderDay  orderMonth)) {
  - var iDelim1 = orderMonth + MONTH.length;
  - var iDelim2 = orderDay + DAY.length;
  - var delim1 = datePattern.substring(iDelim1, iDelim1 + 1);
  - var delim2 = datePattern.substring(iDelim2, iDelim2 + 1);
  - if (iDelim1 == orderDay  iDelim2 == orderYear) {
  -dateRegexp = new RegExp(^(\\d{2})(\\d{2})(\\d{4})$);
  - } else if (iDelim1 == orderDay) {
  -dateRegexp = new RegExp(^(\\d{2})(\\d{2})[ + delim2 + 
](\\d{4})$);
  - } else if (iDelim2 == orderYear) {
  -dateRegexp = new RegExp(^(\\d{2})[ + delim1 + 
](\\d{2})(\\d{4})$);
  - } else {
  -dateRegexp = new RegExp(^(\\d{2})[ + delim1 + ](\\d{2})[ + 
delim2 + ](\\d{4})$);
  - }
  - var matched = dateRegexp.exec(value

cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript validateRequired.js

2003-10-30 Thread rleland
rleland 2003/10/30 22:20:34

  Modified:validator/src/javascript/org/apache/commons/validator/javascript
validateRequired.js
  Log:
  Bug 24202
  Add required check for single checkbox,
  Bug report/patch by Saul Q Yuan
  
  Revision  ChangesPath
  1.7   +8 -3  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateRequired.js
  
  Index: validateRequired.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateRequired.js,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- validateRequired.js   22 Oct 2003 07:20:57 -  1.6
  +++ validateRequired.js   31 Oct 2003 06:20:34 -  1.7
  @@ -16,6 +16,7 @@
   if (field.type == 'text' ||
   field.type == 'textarea' ||
   field.type == 'file' ||
  +field.type == 'checkbox' ||
   field.type == 'select-one' ||
   field.type == 'password') {
   
  @@ -25,6 +26,10 @@
   var si = field.selectedIndex;
   if (si = 0) {
   value = field.options[si].value;
  +}
  +} else if (field.type == 'checkbox') {
  +if (field.checked) {
  +value = field.value;
   }
   } else {
   value = field.value;
  
  
  

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



cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript validateByte.js validateCreditCard.js validateDate.js validateEmail.js validateFloat.js validateFloatRange.js validateIntRange.js validateInteger.js validateMask.js validateMaxLength.js validateMinLength.js validateRequired.js validateShort.js

2003-10-22 Thread rleland
rleland 2003/10/22 00:20:58

  Modified:validator/src/javascript/org/apache/commons/validator/javascript
validateByte.js validateCreditCard.js
validateDate.js validateEmail.js validateFloat.js
validateFloatRange.js validateIntRange.js
validateInteger.js validateMask.js
validateMaxLength.js validateMinLength.js
validateRequired.js validateShort.js
  Log:
  Bug 23972
  Non printing characters were coming from buffer not
  being read completely.
  
  This uncovered a pending issue that needs a new bug ticket opened
  and that is the case of the javascript names, both
  the file name and the JS name.
  Any DoubleCamel validatots will not be found if
  it's name in the struts validator-rules.xml
  isn't also properly cased.
  So: intRange/creditCard is found since it's name
  properly doubled cased.
  However, minlength, maxlength is not found.
  More details will follow in the new Bug Report.
  
  Revision  ChangesPath
  1.3   +3 -3  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateByte.js
  
  Index: validateByte.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateByte.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- validateByte.js   15 Aug 2003 20:20:40 -  1.2
  +++ validateByte.js   22 Oct 2003 07:20:57 -  1.3
  @@ -1,7 +1,7 @@
  +
 //$Header$
 //$Revision$
 //$Date$
  -
   
   function validateByte(form) {
   var bValid = true;
  
  
  
  1.3   +4 -4  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js
  
  Index: validateCreditCard.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- validateCreditCard.js 15 Aug 2003 20:20:40 -  1.2
  +++ validateCreditCard.js 22 Oct 2003 07:20:57 -  1.3
  @@ -1,8 +1,8 @@
  +
 //$Header$
 //$Revision$
 //$Date$
   
  -
   function validateCreditCard(form) {
   var bValid = true;
   var focusField = null;
  @@ -63,4 +63,4 @@
   }
   }
   return true;
  -}
  +}
  \ No newline at end of file
  
  
  
  1.4   +5 -4  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateDate.js
  
  Index: validateDate.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateDate.js,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- validateDate.js   26 Sep 2003 17:03:22 -  1.3
  +++ validateDate.js   22 Oct 2003 07:20:57 -  1.4
  @@ -1,3 +1,4 @@
  +
 //$Header$
 //$Revision$
 //$Date$
  @@ -128,7 +129,7 @@
  }
  return bValid;
   }
  -
  +
   function isValidDate(day, month, year) {
if (month  1 || month  12) {
   return false;
  
  
  
  1.3   +4 -3  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateEmail.js
  
  Index: validateEmail.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateEmail.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- validateEmail.js  15 Aug 2003 20:20:40 -  1.2
  +++ validateEmail.js  22 Oct 2003 07:20:57 -  1.3
  @@ -1,3 +1,4 @@
  +
 //$Header$
 //$Revision$
 //$Date$
  
  
  
  1.5   +3 -3  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloat.js
  
  Index: validateFloat.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloat.js,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- validateFloat.js  22 Oct 2003 04:18:42 -  1.4
  +++ validateFloat.js  22 Oct 2003 07:20:57 -  1.5
  @@ -1,7 +1,7 @@
  +
 //$Header$
 //$Revision$
 //$Date$
  -
   
   function validateFloat(form) {
   var bValid = true;
  
  
  
  1.3   +5 -5  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloatRange.js
  
  Index: validateFloatRange.js

cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript validateFloat.js

2003-10-21 Thread rleland
rleland 2003/10/21 21:18:42

  Modified:validator/src/javascript/org/apache/commons/validator/javascript
validateFloat.js
  Log:
  Bug 23972
  Found missing statement, joinedString
  which was deleted after Validator 1.1.0 release.
  I do see non-printing characters in the Javascript
  but one thing at a time.
  
  Revision  ChangesPath
  1.4   +4 -3  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloat.js
  
  Index: validateFloat.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloat.js,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- validateFloat.js  15 Aug 2003 20:20:40 -  1.3
  +++ validateFloat.js  22 Oct 2003 04:18:42 -  1.4
  @@ -33,6 +33,7 @@
   var tempArray = value.split('.');
   //Strip off leading '0'
   var zeroIndex = 0;
  +var joinedString= tempArray.join('');
   while (joinedString.charAt(zeroIndex) == '0') {
   zeroIndex++;
   }
  
  
  

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



cvs commit: jakarta-commons/validator project.xml

2003-10-14 Thread rleland
rleland 2003/10/14 21:12:25

  Modified:validator project.xml
  Log:
  Scan all CVS logs back to January 2002 to validators beginings
  and pickup all know patch/contributors.
  
  Revision  ChangesPath
  1.24  +103 -0jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- project.xml   14 Sep 2003 02:53:15 -  1.23
  +++ project.xml   15 Oct 2003 04:12:24 -  1.24
  @@ -89,11 +89,114 @@
 
 contributors
   contributor
  +  nameSaul Q Yuan Add/name
  +  id/id
  +  email/email
  +  organization/organization
  +/contributor
  +contributor
  +  nameShane Bailey/name
  +  id/id
  +  email/email
  +  organization/organization
  +/contributor
  +   contributor
  +  nameTim O'Brien/name
  +  id/id
  +  email/email
  +  organization/organization
  +/contributor
  +   contributor
  +  nameScott Clasen/name
  +  id/id
  +  email[EMAIL PROTECTED]/email
  +  organization/organization
  +/contributor
  +contributor
  +  nameMarcus Brito Finish/name
  +  id/id
  +  email/email
  +  organization/organization
  +/contributor
  +  contributor
  +  namePadma Ginnaram/name
  +  id/id
  +  email/email
  +  organization/organization
  +/contributor
  +   contributor
  +  nameThomas Jacob/name
  +  id/id
  +  email[EMAIL PROTECTED]/email
  +  organization/organization
  +/contributor
  +contributor
  +  nameAdam Kramer/name
  +  id/id
  +  email/email
  +  organization/organization
  +/contributor
  +contributor
  +  nameGreg Ludington/name
  +  id/id
  +  email/email
  +  organization/organization
  +/contributor
  +   contributor
  +  nameBjörn-H. Moritz/name
  +  id/id
  +  email/email
  +  organization/organization
  +/contributor
  + contributor
 nameDavid Neuer/name
 id/id
 email[EMAIL PROTECTED]/email
 organization/organization
   /contributor
  +   contributor
  +  nameKurt Post/name
  +  id/id
  +  email/email
  +  organization/organization
  +/contributor
  +   contributor
  +  nameArun Mammen Thomas/name
  +  id/id
  +  email/email
  +  organization/organization
  +/contributor
  +   contributor
  +  nameSteven Fines/name
  +  id/id
  +  email[EMAIL PROTECTED]/email
  +  organization/organization
  +/contributor
  +   contributor
  +  nameDidier Romelot/name
  +  id/id
  +  email[EMAIL PROTECTED]/email
  +  organization/organization
  +/contributor
  +contributor
  +  nameSteve Stair/name
  +  id/id
  +  email/email
  +  organization/organization
  +/contributor
  +   contributor
  +  nameJeremy Tan/name
  +  id/id
  +  email[EMAIL PROTECTED]/email
  +  organization/organization
  +/contributor
  +contributor
  +  name94RGt2/name
  +  id/id
  +  email[EMAIL PROTECTED]/email
  +  organization/organization
  +/contributor
  +
 /contributors
 
 dependencies
  
  
  

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



cvs commit: jakarta-commons/validator build.properties.sample

2003-10-14 Thread rleland
rleland 2003/10/14 21:15:40

  Modified:validator build.properties.sample
  Log:
  Update versions of jars to match Maven versions.
  
  Revision  ChangesPath
  1.9   +10 -10jakarta-commons/validator/build.properties.sample
  
  Index: build.properties.sample
  ===
  RCS file: /home/cvs/jakarta-commons/validator/build.properties.sample,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- build.properties.sample   23 Aug 2003 02:36:49 -  1.8
  +++ build.properties.sample   15 Oct 2003 04:15:40 -  1.9
  @@ -7,25 +7,25 @@
   # contains the build.xml file.
   # -
   apache.dir=D:/Java/Programs/Apache
  -# The JAR file containing version 1.0 (or later) of the Beanutils package
  +# The JAR file containing version 1.6.1 (or later) of the Beanutils package
   # from the Jakarta Commons project.
   commons-beanutils.jar=../beanutils/dist/commons-beanutils.jar
   
  -# The JAR file containing version 1.0 (or later) of the Collections package
  +# The JAR file containing version 2.1 (or later) of the Collections package
   # from the Jakarta Commons project.
   commons-collections.jar=../collections/dist/commons-collections.jar
   
  -# The JAR file containing version 1.0 (or later) of the Digester package
  +# The JAR file containing version 1.5 (or later) of the Digester package
   # from the Jakarta Commons project.
   commons-digester.jar=../digester/dist/commons-digester.jar
   
  -# The JAR file containing version 1.0 (or later) of the Logging package
  +# The JAR file containing version 1.0.3 (or later) of the Logging package
   # from the Jakarta Commons project.
   commons-logging.jar=../logging/dist/commons-logging.jar
   
  -# The JAR file containing version 2.06 (or later) of 
  +# The JAR file containing version 2.07 (or later) of 
   # the the Jakarta ORO project.
  -oro.jar=${apache.dir}/jakarta-oro-2.0.6/jakarta-oro-2.0.6.jar
  +oro.jar=${apache.dir}/jakarta-oro-2.0.7/jakarta-oro-2.0.7.jar
   
   # The JAR file containing version 3.8.1 (or later) of
   # JUnit Unit Testing (http://www.junit.org)
  @@ -35,7 +35,7 @@
   xerces.jar=${apache.dir}/xerces-1_4_2/xerces.jar
   #Maven Variables ###
   # CVS Start Change Log date
  -cvs.start=17 April 2003
  +maven.changelog.range=2000
   
   
   # If you are using ssh tunneling  have a .cvspass file setup
  
  
  

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



cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript validateDate.js

2003-09-26 Thread rleland
rleland 2003/09/26 10:03:22

  Modified:validator/src/javascript/org/apache/commons/validator/javascript
validateDate.js
  Log:
  Bug#: 22384 context diff provided by [EMAIL PROTECTED]
  Modify javascript to honor datapattern option.
  
  Revision  ChangesPath
  1.3   +6 -3  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateDate.js
  
  Index: validateDate.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateDate.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- validateDate.js   15 Aug 2003 20:20:40 -  1.2
  +++ validateDate.js   26 Sep 2003 17:03:22 -  1.3
  @@ -12,6 +12,9 @@
  for (x in oDate) {
  var value = form[oDate[x][0]].value;
  var datePattern = oDate[x][2](datePatternStrict);
  +   // try loose pattern
  +   if (datePattern == null)
  +   datePattern = oDate[x][2](datePattern);
  if ((form[oDate[x][0]].type == 'text' || form[oDate[x][0]].type == 
'textarea') 
  (value.length  0)  (datePattern.length  0)) {
var MONTH = MM;
  
  
  

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



cvs commit: jakarta-commons/validator build.xml project.properties project.xml

2003-09-13 Thread rleland
rleland 2003/09/13 19:53:15

  Modified:validator build.xml project.properties project.xml
  Log:
  Change build number to 1.1.1-dev
  Also update Ant build versions to match Maven's
  .
  
  Revision  ChangesPath
  1.27  +2 -2  jakarta-commons/validator/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/build.xml,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- build.xml 27 Aug 2003 03:49:26 -  1.26
  +++ build.xml 14 Sep 2003 02:53:15 -  1.27
  @@ -52,7 +52,7 @@
 property name=component.title value=Validator/
   
 !-- The current version number of this component --
  -  property name=component.version   value=1.1.0/
  +  property name=component.version   value=1.1.1-dev/
   
 !-- The base directory for compilation targets --
 property name=build.home  value=target/
  
  
  
  1.4   +4 -1  jakarta-commons/validator/project.properties
  
  Index: project.properties
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.properties,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- project.properties23 Aug 2003 02:26:49 -  1.3
  +++ project.properties14 Sep 2003 02:53:15 -  1.4
  @@ -24,6 +24,9 @@
   # Include legacy javadoc in build
   maven.html2xdoc.dir = legacy
   
  +# No powered by Image
  +maven.xdoc.poweredby.image=
  +
   # display the date on the site
   maven.xdoc.date = left
   # Display the version the web site is documenting
  
  
  
  1.23  +2 -1  jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- project.xml   27 Aug 2003 03:49:26 -  1.22
  +++ project.xml   14 Sep 2003 02:53:15 -  1.23
  @@ -4,7 +4,7 @@
 extend../project.xml/extend
 nameValidator/name
 idcommons-validator/id
  -  currentVersion1.1.0/currentVersion
  +  currentVersion1.1.1-dev/currentVersion
   
 organization
   nameApache Software Foundation/name
  @@ -200,6 +200,7 @@
   reportmaven-pmd-plugin/report
   reportmaven-simian-plugin/report
   reportmaven-faq-plugin/report
  +reportmaven-clover-plugin/report
 /reports
   
   /project
  
  
  

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



cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript validateRequired.js

2003-09-09 Thread rleland
rleland 2003/09/08 23:19:57

  Modified:validator/src/javascript/org/apache/commons/validator/javascript
validateRequired.js
  Log:
  Bug 11520  patch supplied by Marcus Brito
  Finish applying patches to handle radio types in 'required js rule'
  
  Revision  ChangesPath
  1.4   +7 -7  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateRequired.js
  
  Index: validateRequired.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateRequired.js,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- validateRequired.js   6 Sep 2003 05:33:26 -   1.3
  +++ validateRequired.js   9 Sep 2003 06:19:57 -   1.4
  @@ -5,6 +5,7 @@
   var i = 0;
   var fields = new Array();
   oRequired = new required();
  +
   for (x in oRequired) {
   var field = form[oRequired[x][0]];
   
  @@ -12,7 +13,6 @@
   field.type == 'textarea' ||
   field.type == 'file' ||
   field.type == 'select-one' ||
  -field.type == 'radio' ||
   field.type == 'password') {
   
   var value = '';
  @@ -34,10 +34,7 @@
   fields[i++] = oRequired[x][1];
   isValid = false;
   }
  -}
  -// For fields that are actually object arrays, like radio button banks,
  -// iterate through the array and make sure something is checked
  -if (field.length  0) {
  +} else if ((field.length  0)  (field[0].type == 'radio')) {
   isChecked=-1;
   for (loop=0;loop  field.length;loop++) {
   if (field[loop].checked) {
  @@ -45,7 +42,10 @@
   }
   }
   if (isChecked  0) {
  -fields[i++] = oRequired[x][1]
  +if (i == 0) {
  +focusField = field[0];
  +}
  +fields[i++] = oRequired[x][1];
   isValid=false;
   }
   }
  @@ -60,4 +60,4 @@
   // Trim whitespace from left and right sides of s.
   function trim(s) {
   return s.replace( /^\s*/,  ).replace( /\s*$/,  );
  -}
  \ No newline at end of file
  +}
  
  
  

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



cvs commit: jakarta-commons/validator build.xml project.xml

2003-08-27 Thread rleland
rleland 2003/08/26 20:49:26

  Modified:validator build.xml project.xml
  Log:
  Change version to 1.1.0
  
  Revision  ChangesPath
  1.26  +2 -2  jakarta-commons/validator/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/build.xml,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- build.xml 22 Aug 2003 06:33:04 -  1.25
  +++ build.xml 27 Aug 2003 03:49:26 -  1.26
  @@ -52,7 +52,7 @@
 property name=component.title value=Validator/
   
 !-- The current version number of this component --
  -  property name=component.version   value=1.1.0-dev/
  +  property name=component.version   value=1.1.0/
   
 !-- The base directory for compilation targets --
 property name=build.home  value=target/
  
  
  
  1.22  +1 -1  jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- project.xml   23 Aug 2003 02:34:45 -  1.21
  +++ project.xml   27 Aug 2003 03:49:26 -  1.22
  @@ -4,7 +4,7 @@
 extend../project.xml/extend
 nameValidator/name
 idcommons-validator/id
  -  currentVersion1.1.0-dev/currentVersion
  +  currentVersion1.1.0/currentVersion
   
 organization
   nameApache Software Foundation/name
  
  
  

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



cvs commit: jakarta-commons/validator KEYS

2003-08-27 Thread rleland
rleland 2003/08/27 01:02:26

  Added:   validator KEYS
  Log:
  Add Key file for signing releases
  
  Revision  ChangesPath
  1.1  jakarta-commons/validator/KEYS
  
  Index: KEYS
  ===
  This file contains the PGP keys of various Apache developers.
  Please don't use them for email unless you have to. Their main
  purpose is code signing.
  
  Apache users: pgp  KEYS
  Apache developers: 
  (pgpk -ll your name  pgpk -xa your name)  this file.
or
  (gpg --fingerprint --list-sigs your name
gpg --armor --export your name)  this file.
  
  Apache developers: please ensure that your key is also available via the
  PGP keyservers (such as pgpkeys.mit.edu).
  
  
  pub  1024D/F2A46D40 2003-08-27 Rob Leland (For Uploading Builds/Releases) [EMAIL 
PROTECTED]
   Key fingerprint = A20A A262 E293 2AB1 889A  7CFB 7F77 23FE F2A4 6D40
  sig 3   F2A46D40 2003-08-27   Rob Leland (For Uploading Builds/Releases) [EMAIL 
PROTECTED]
  sub  1056g/EF8E1258 2003-08-27 [expires: 2005-08-26]
  sig F2A46D40 2003-08-27   Rob Leland (For Uploading Builds/Releases) [EMAIL 
PROTECTED]
  
  -BEGIN PGP PUBLIC KEY BLOCK-
  Version: GnuPG v1.2.2 (Cygwin)
  
  mQGiBD9MWnURBADIx7Q8AIe+NTbRiCxM2pkgeMFZN/3mO4vd1mW5R9TD5PcpisUv
  htxykhVyQb5ifHBRK732nE+2nGGAqDP2I0lKKt9EhYXIUUU1UYrveK2gFXA31m0d
  L+Ghoa8Ugm11uPJz5IYjTLU9LOIu3sBLo25BCOi5dZ1E0oEP+iU52NLuNwCgkK59
  ZdbDVqWyrO5a86EwbHiyhk8D/0Wyn9isVS7vw5CQh9/u3WCvbh4MovZYZ6/3sy//
  4X4Uy8wBKAjZQhJQuFsQY2tcIj/MEE8g9nqpF3QGJIinbt7DNW80w439+MczoSmJ
  Ck33GqMffniaSWOBW+Xlsm379vdCZR+DFZeOoaXzKeBCu/SRnpRYMR3UoQHw9hyO
  ReA3A/9f0DcwumJ2ofpRIAbTRMnDvXUSfc95qtiCm4JHaRMbFdD10L2swE76N+/A
  I1fhQdcBv5I1hm0DGBo9++6TItGYpP+IJxoIpETAOahM/jg64ZPRmtoCTYbnWqig
  lTuAs1xIwR1L43mH70dxaE8Coge/V5HBi5rz/gwTRyP3/9pUk7Q/Um9iIExlbGFu
  ZCAoRm9yIFVwbG9hZGluZyBCdWlsZHMvUmVsZWFzZXMpIDxybGVsYW5kQGFwYWNo
  ZS5vcmc+iGEEExECACEFAj9MWnUFCQPCZwAGCwkIBwMCAxUCAwMWAgECHgECF4AA
  CgkQf3cj/vKkbUDCLACffF7f0Rel07bxCSGLrg9fzMsHIL8AoI9rVGqq8ID+4VgA
  0AiyP1k99BPNuQEVBD9MWncQBCDlujLhU6jr+pkF/EA7n+9yVennnev9GMLts91k
  7vla47VV2Uxdywd+sEE7nW5Ld+oHhFTPIWOF9aezKyGseob0sjmp95dp5q5rLk8X
  f0V+IsVCWyevRIXxNoKiCpWUuWwBcHzsbgOoNnnuxxC/QSkP4sHr8bax3inBoCfd
  3YFLb1i5TuMAAwUEHRjnW05hHCVl+SyCzVAV+/UvJDKE9UXM0Is6yIOd1jwqUnNQ
  xMjuMLjnRHIXt79UHYV8GXkgxWjdx+w1eW9KDpUSy2TcTAD6l6tXBIBI24dzGxHl
  tDbTAX1kNl1Qmw8qUiu1qc8nSDTD0B26tGveTyp15Zb80uN3zNjC9qDsuVdfiu6D
  7YhMBBgRAgAMBQI/TFp3BQkDwmcAAAoJEH93I/7ypG1AaSMAn1tMyP0k00bYBKzX
  +s7PneFo65zWAJ9g2bgkGaAwByLTuah16xaRLNKC0g==
  =xkP8
  -END PGP PUBLIC KEY BLOCK-
  
  

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



cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator GenericValidator.java

2003-08-26 Thread rleland
rleland 2003/08/26 09:11:01

  Modified:validator/src/share/org/apache/commons/validator
GenericValidator.java
  Log:
  Bug#: 21034 Patch submitted by Adam Kramer
  Add isInRange for byte and long
  
  Revision  ChangesPath
  1.27  +32 -8 
jakarta-commons/validator/src/share/org/apache/commons/validator/GenericValidator.java
  
  Index: GenericValidator.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/GenericValidator.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- GenericValidator.java 21 Aug 2003 21:43:05 -  1.26
  +++ GenericValidator.java 26 Aug 2003 16:11:01 -  1.27
  @@ -203,10 +203,22 @@
   }
   
   /**
  + * pChecks if a value is within a range (min amp; max specified
  + * in the vars attribute)./p
  + *
  + * @paramvalue   The value validation is being performed on.
  + * @parammin The minimum value of the range.
  + * @parammax The maximum value of the range.
  + */
  +   public static boolean isInRange(byte value, byte min, byte max) {
  +   return ((value = min)  (value = max));
  +   }
  +
  +/**
* pChecks if a value is within a range (min amp; max specified
* in the vars attribute)./p
*
  - * @param value The value validation is being performed on.
  + * @param value  The value validation is being performed on.
* @param minThe minimum value of the range.
* @param maxThe maximum value of the range.
*/
  @@ -218,7 +230,7 @@
* pChecks if a value is within a range (min amp; max specified
* in the vars attribute)./p
*
  - * @param value The value validation is being performed on.
  + * @param value  The value validation is being performed on.
* @param minThe minimum value of the range.
* @param maxThe maximum value of the range.
*/
  @@ -230,7 +242,7 @@
* pChecks if a value is within a range (min amp; max specified
* in the vars attribute)./p
*
  - * @param value The value validation is being performed on.
  + * @param value  The value validation is being performed on.
* @param minThe minimum value of the range.
* @param maxThe maximum value of the range.
*/
  @@ -238,11 +250,23 @@
   return ((value = min)  (value = max));
   }
   
  +   /**
  +* pChecks if a value is within a range (min amp; max specified
  +* in the vars attribute)./p
  +*
  +* @param value   The value validation is being performed on.
  +* @param min The minimum value of the range.
  +* @param max The maximum value of the range.
  +*/
  +   public static boolean isInRange(long value, long min, long max) {
  +  return ((value = min)  (value = max));
  +   }
  +
   /**
* pChecks if a value is within a range (min amp; max specified
* in the vars attribute)./p
*
  - * @param value The value validation is being performed on.
  + * @param value  The value validation is being performed on.
* @param minThe minimum value of the range.
* @param maxThe maximum value of the range.
*/
  
  
  

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



cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator Validator.java

2003-08-26 Thread rleland
rleland 2003/08/26 09:11:48

  Modified:validator/src/share/org/apache/commons/validator
Validator.java
  Log:
  remove unthrown exceptions from JavaDoc
  
  Revision  ChangesPath
  1.30  +4 -7  
jakarta-commons/validator/src/share/org/apache/commons/validator/Validator.java
  
  Index: Validator.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Validator.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- Validator.java22 Aug 2003 02:30:59 -  1.29
  +++ Validator.java26 Aug 2003 16:11:48 -  1.30
  @@ -608,9 +608,6 @@
* @param pos
* @param params
* @param paramValue
  - * @throws IllegalAccessException
  - * @throws InvocationTargetException
  - * @throws NoSuchMethodException
*/
   private void handleIndexedField(
   Field field,
  
  
  

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



cvs commit: jakarta-commons/validator/src/test/org/apache/commons/validator MultipleTests.java

2003-08-26 Thread rleland
rleland 2003/08/26 09:12:47

  Modified:validator/src/test/org/apache/commons/validator
MultipleTests.java
  Log:
  Replace use of deprecated API elements with
  current API calls
  
  Revision  ChangesPath
  1.12  +8 -8  
jakarta-commons/validator/src/test/org/apache/commons/validator/MultipleTests.java
  
  Index: MultipleTests.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/MultipleTests.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- MultipleTests.java26 Aug 2003 15:18:56 -  1.11
  +++ MultipleTests.java26 Aug 2003 16:12:47 -  1.12
  @@ -308,7 +308,7 @@
  Validator validator = new Validator(resources, FORM_KEY);
  // add the name bean to the validator as a resource
  // for the validations to be performed on.
  -   validator.addResource(Validator.BEAN_KEY, name);
  +   validator.setParameter(Validator.BEAN_PARAM, name);
   
  // Get results of the validation.
  ValidatorResults results = null;
  @@ -346,7 +346,7 @@
  Validator validator = new Validator(resources, FORM_KEY);
  // add the name bean to the validator as a resource
  // for the validations to be performed on.
  -   validator.addResource(Validator.BEAN_KEY, name);
  +   validator.setParameter(Validator.BEAN_PARAM, name);
   
  // Get results of the validation.
  ValidatorResults results = null;
  @@ -384,7 +384,7 @@
  Validator validator = new Validator(resources, FORM_KEY);
  // add the name bean to the validator as a resource
  // for the validations to be performed on.
  -   validator.addResource(Validator.BEAN_KEY, name);
  +   validator.setParameter(Validator.BEAN_PARAM, name);
   
  // Get results of the validation.
  ValidatorResults results = null;
  @@ -423,7 +423,7 @@
  Validator validator = new Validator(resources, FORM_KEY);
  // add the name bean to the validator as a resource
  // for the validations to be performed on.
  -   validator.addResource(Validator.BEAN_KEY, name);
  +   validator.setParameter(Validator.BEAN_PARAM, name);
   
  // Get results of the validation.
  ValidatorResults results = null;
  
  
  

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



cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator Field.java

2003-08-26 Thread rleland
rleland 2003/08/26 09:08:50

  Modified:validator/src/share/org/apache/commons/validator Field.java
  Log:
  Remove unneeded cast
  
  Revision  ChangesPath
  1.24  +5 -5  
jakarta-commons/validator/src/share/org/apache/commons/validator/Field.java
  
  Index: Field.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Field.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- Field.java21 Aug 2003 21:43:05 -  1.23
  +++ Field.java26 Aug 2003 16:08:50 -  1.24
  @@ -296,7 +296,7 @@
   
   this.ensureArgsCapacity(arg);
   
  -Map argMap = (Map) this.args[arg.getPosition()];
  +Map argMap = this.args[arg.getPosition()];
   if (argMap == null) {
   argMap = new HashMap();
   this.args[arg.getPosition()] = argMap;
  
  
  

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



cvs commit: jakarta-commons/validator/src/test/org/apache/commons/validator MultipleTests.java NameBean.java TestValidator.java validator-multipletest.xml

2003-08-26 Thread rleland
rleland 2003/08/26 08:18:56

  Modified:validator/src/test/org/apache/commons/validator
MultipleTests.java NameBean.java TestValidator.java
validator-multipletest.xml
  Log:
  Bug#: 22664, Patches submitted by Mammen Thomas
  Add unit tests to capture how dependencies between validators
  currently works.
  
  Thanks, will be in Validator 1.1.0 release.
  
  Revision  ChangesPath
  1.11  +156 -4
jakarta-commons/validator/src/test/org/apache/commons/validator/MultipleTests.java
  
  Index: MultipleTests.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/MultipleTests.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- MultipleTests.java23 Aug 2003 02:24:07 -  1.10
  +++ MultipleTests.java26 Aug 2003 15:18:56 -  1.11
  @@ -77,6 +77,7 @@
* pPerforms Validation Test./p
*
* @author James Turner
  + * @author Arun Mammen Thomas
* @version $Revision$ $Date$
   */
   public class MultipleTests extends TestCase {
  @@ -292,5 +293,156 @@
 assertTrue(Last Name ValidatorResult for the 'int' action should have 
passed., lastNameResult.isValid(int));
  }
   
  +   /**
  +* If middle name is not there, then the required dependent test should fail.
  +* No other tests should run
  +*
  +* @throws ValidatorException
  +*/
  +   public void testFailingFirstDependentValidator() throws ValidatorException {
  +   // Create bean to run test on.
  +   NameBean name = new NameBean();
  +
  +   // Construct validator based on the loaded resources
  +   // and the form key
  +   Validator validator = new Validator(resources, FORM_KEY);
  +   // add the name bean to the validator as a resource
  +   // for the validations to be performed on.
  +   validator.addResource(Validator.BEAN_KEY, name);
  +
  +   // Get results of the validation.
  +   ValidatorResults results = null;
  +
  +   results = validator.validate();
  +
  +   assertNotNull(Results are null., results);
  +
  +   ValidatorResult middleNameResult = results.getValidatorResult(middleName);
  +
  +   assertNotNull(Middle Name ValidatorResult should not be null., 
middleNameResult);
  +
  +   assertTrue(Middle Name ValidatorResult should contain the 'required' 
action., middleNameResult.containsAction(required));
  +   assertTrue(Middle Name ValidatorResult for the 'required' action should 
have failed, !middleNameResult.isValid(required));
  +
  +   assertTrue(Middle Name ValidatorResult should not contain the 'int' 
action., !middleNameResult.containsAction(int));
  +
  +   assertTrue(Middle Name ValidatorResult should not contain the 'positive' 
action., !middleNameResult.containsAction(positive));
  +   }
  +
  +   /**
  +* If middle name is there but not int, then the required dependent test
  +* should pass, but the int dependent test should fail. No other tests should
  +* run.
  +*
  +* @throws ValidatorException
  +*/
  +   public void testFailingNextDependentValidator() throws ValidatorException {
  +   // Create bean to run test on.
  +   NameBean name = new NameBean();
  +   name.setMiddleName(TEST);
  +
  +   // Construct validator based on the loaded resources
  +   // and the form key
  +   Validator validator = new Validator(resources, FORM_KEY);
  +   // add the name bean to the validator as a resource
  +   // for the validations to be performed on.
  +   validator.addResource(Validator.BEAN_KEY, name);
  +
  +   // Get results of the validation.
  +   ValidatorResults results = null;
  +
  +   results = validator.validate();
  +
  +   assertNotNull(Results are null., results);
  +
  +   ValidatorResult middleNameResult = results.getValidatorResult(middleName);
  +
  +   assertNotNull(Middle Name ValidatorResult should not be null., 
middleNameResult);
  +
  +   assertTrue(Middle Name ValidatorResult should contain the 'required' 
action., middleNameResult.containsAction(required));
  +   assertTrue(Middle Name ValidatorResult for the 'required' action should 
have passed, middleNameResult.isValid(required));
  +
  +   assertTrue(Middle Name ValidatorResult should contain the 'int' action., 
middleNameResult.containsAction(int));
  +   assertTrue(Middle Name ValidatorResult for the 'int' action should have 
failed, !middleNameResult.isValid(int));
  +
  +   assertTrue(Middle Name ValidatorResult should not contain the 'positive' 
action., !middleNameResult.containsAction(positive));
  +   }
   
  +   /**
  +* If middle name is there and a negative int, then the required and int
  +* dependent tests should pass, but the positive test should fail.
  +*
  +* @throws

cvs commit: jakarta-commons/validator/src/test/org/apache/commons/validator ByteTest.java CreditCardValidatorTest.java DoubleTest.java EmailTest.java FloatTest.java IntegerTest.java LocaleTest.java LongTest.java MultipleConfigFilesTest.java MultipleTests.java NameBean.java RequiredIfTest.java RequiredNameTest.java ShortTest.java TestTypeValidator.java TestValidator.java TypeBean.java TypeTest.java UrlTest.java

2003-08-22 Thread rleland
rleland 2003/08/22 19:24:08

  Modified:validator/src/test/org/apache/commons/validator
ByteTest.java CreditCardValidatorTest.java
DoubleTest.java EmailTest.java FloatTest.java
IntegerTest.java LocaleTest.java LongTest.java
MultipleConfigFilesTest.java MultipleTests.java
NameBean.java RequiredIfTest.java
RequiredNameTest.java ShortTest.java
TestTypeValidator.java TestValidator.java
TypeBean.java TypeTest.java UrlTest.java
  Log:
  Fix License in tests, no functionality changes
  
  Revision  ChangesPath
  1.11  +9 -9  
jakarta-commons/validator/src/test/org/apache/commons/validator/ByteTest.java
  
  Index: ByteTest.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/ByteTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ByteTest.java 12 Aug 2003 00:29:34 -  1.10
  +++ ByteTest.java 23 Aug 2003 02:24:07 -  1.11
  @@ -7,7 +7,7 @@
*
* The Apache Software License, Version 1.1
*
  - * Copyright (c) 1999-2002 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2003 The Apache Software Foundation.  All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
  @@ -23,20 +23,20 @@
*distribution.
*
* 3. The end-user documentation included with the redistribution, if
  - *any, must include the following acknowlegement:
  + *any, must include the following acknowledgement:
*   This product includes software developed by the
*Apache Software Foundation (http://www.apache.org/).
*Alternately, this acknowlegement may appear in the software itself,
*if and wherever such third-party acknowlegements normally appear.
*
  - * 4. The names The Jakarta Project, Commons, and Apache Software
  + * 4. The names, Apache, The Jakarta Project, Commons, and Apache Software
*Foundation must not be used to endorse or promote products derived
*from this software without prior written permission. For written
*permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called Apache
  - *nor may Apache appear in their names without prior written
  - *permission of the Apache Group.
  + *nor may Apache appear in their name, without prior written
  + *permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  
  
  
  1.3   +8 -8  
jakarta-commons/validator/src/test/org/apache/commons/validator/CreditCardValidatorTest.java
  
  Index: CreditCardValidatorTest.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/CreditCardValidatorTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CreditCardValidatorTest.java  8 Jun 2003 21:54:07 -   1.2
  +++ CreditCardValidatorTest.java  23 Aug 2003 02:24:07 -  1.3
  @@ -7,7 +7,7 @@
*
* The Apache Software License, Version 1.1
*
  - * Copyright (c) 1999-2003 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2003 The Apache Software Foundation.  All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
  @@ -23,20 +23,20 @@
*distribution.
*
* 3. The end-user documentation included with the redistribution, if
  - *any, must include the following acknowlegement:
  + *any, must include the following acknowledgement:
*   This product includes software developed by the
*Apache Software Foundation (http://www.apache.org/).
*Alternately, this acknowlegement may appear in the software itself,
*if and wherever such third-party acknowlegements normally appear.
*
  - * 4. The names The Jakarta Project, Commons, and Apache Software
  + * 4. The names, Apache, The Jakarta Project, Commons, and Apache Software
*Foundation must not be used to endorse or promote products derived
*from this software without prior written permission. For written
*permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called Apache
  - *nor may Apache appear in their names without prior written
  - *permission of the Apache Group.
  + *nor may Apache appear in their name, without prior written
  + *permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED

cvs commit: jakarta-commons/validator project.properties

2003-08-22 Thread rleland
rleland 2003/08/22 19:26:49

  Modified:validator project.properties
  Log:
  Kee[ ant and Maven build directories seperate
  
  Revision  ChangesPath
  1.3   +4 -1  jakarta-commons/validator/project.properties
  
  Index: project.properties
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.properties,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- project.properties21 Aug 2003 21:46:21 -  1.2
  +++ project.properties23 Aug 2003 02:26:49 -  1.3
  @@ -18,6 +18,9 @@
   
   maven.checkstyle.properties = conf/share/ValidatorCheckStyle.xml
   
  +#keep ant  maven directories seperate.
  +maven.build.dir=m-target
  +
   # Include legacy javadoc in build
   maven.html2xdoc.dir = legacy
   
  
  
  

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



cvs commit: jakarta-commons/validator project.xml

2003-08-22 Thread rleland
rleland 2003/08/22 19:34:45

  Modified:validator project.xml
  Log:
  Add repository and remove items duplicated from commons
  project.cml
  
  Revision  ChangesPath
  1.21  +16 -6 jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- project.xml   22 Aug 2003 07:21:53 -  1.20
  +++ project.xml   23 Aug 2003 02:34:45 -  1.21
  @@ -5,23 +5,32 @@
 nameValidator/name
 idcommons-validator/id
 currentVersion1.1.0-dev/currentVersion
  +
  +  organization
  +nameApache Software Foundation/name
  +urlhttp://www.apache.org/url
  +logohttp://jakarta.apache.org/images/jakarta-logo-blue.gif/logo
  +  /organization
  +  logo/images/Validatorlogo.gif/logo
 
 inceptionYear2002/inceptionYear
  -  gumpRepositoryIdjakarta/gumpRepositoryId
 packageorg.apache.commons.validator/package
   
 shortDescriptionCommons Validator/shortDescription
  -  logo/images/Validatorlogo.gif/logo
  -
 description
   Commons Validator provides the building blocks for both client side validation
   and server side data validation. It may be used standalone or with a framework 
like
   Struts.
 /description
 urlhttp://jakarta.apache.org/commons/validator//url
  - 
  -  issueTrackingUrlhttp://nagoya.apache.org/bugzilla//issueTrackingUrl
  -  siteAddressjakarta.apache.org/siteAddress
  +  gumpRepositoryIdjakarta/gumpRepositoryId
  +
  +  repository
  + connectionscm:cvs:pserver:[EMAIL 
PROTECTED]:/home/cvspublic:jakarta-commons/validator/connection
  + developerConnectionscm:cvs:pserver:[EMAIL 
PROTECTED]:/home/cvs:jakarta-commons/validator/developerConnection
  +urlhttp://cvs.apache.org/viewcvs/jakarta-commons/validator/url
  +  /repository
  +
 siteDirectory/www/jakarta.apache.org/commons/validator//siteDirectory
 
distributionDirectoryhttp://jakarta.apache.org/site/binindex.cgi/distributionDirectory
 mailingLists
  @@ -126,6 +135,7 @@
 urlhttp://xml.apache.org/commons//url
   /dependency
   
  + !-- for unit tests --
   dependency
 idjunit/id
 version3.8.1/version
  
  
  

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



cvs commit: jakarta-commons/validator build.properties.sample

2003-08-22 Thread rleland
rleland 2003/08/22 19:36:49

  Modified:validator build.properties.sample
  Log:
  Add cvs/repository variables.
  
  Revision  ChangesPath
  1.8   +11 -3 jakarta-commons/validator/build.properties.sample
  
  Index: build.properties.sample
  ===
  RCS file: /home/cvs/jakarta-commons/validator/build.properties.sample,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- build.properties.sample   21 Aug 2003 21:49:31 -  1.7
  +++ build.properties.sample   23 Aug 2003 02:36:49 -  1.8
  @@ -33,3 +33,11 @@
   
   # Just needed for building the Javadocs
   xerces.jar=${apache.dir}/xerces-1_4_2/xerces.jar
  +#Maven Variables ###
  +# CVS Start Change Log date
  +cvs.start=17 April 2003
  +
  +
  +# If you are using ssh tunneling  have a .cvspass file setup
  +cvs.developer.host=localhost
  +cvs.developer.id=rleland
  
  
  

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



cvs commit: jakarta-commons/validator project.xml

2003-08-21 Thread rleland
rleland 2003/08/21 14:44:59

  Modified:validator project.xml
  Log:
  Add back html2xdoc now that it works
  
  Revision  ChangesPath
  1.18  +1 -1  jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- project.xml   20 Aug 2003 05:07:40 -  1.17
  +++ project.xml   21 Aug 2003 21:44:59 -  1.18
  @@ -190,7 +190,7 @@
   reportmaven-pmd-plugin/report
   reportmaven-simian-plugin/report
   reportmaven-faq-plugin/report
  -  !--  reportmaven-html2xdoc-plugin/report --
  +reportmaven-html2xdoc-plugin/report
 /reports
   
   /project
  
  
  

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



cvs commit: jakarta-commons/validator project.properties

2003-08-21 Thread rleland
rleland 2003/08/21 14:46:21

  Modified:validator project.properties
  Log:
  Add a checkstyle.xml, this still needs to
  be voted on and trimmed down because it is very noisy.
  PMD is a better tool for most of these items.
  
  Revision  ChangesPath
  1.2   +2 -2  jakarta-commons/validator/project.properties
  
  Index: project.properties
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.properties,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- project.properties20 Aug 2003 04:19:53 -  1.1
  +++ project.properties21 Aug 2003 21:46:21 -  1.2
  @@ -16,7 +16,7 @@
   #
   
#maven.repo.remote=http://www.ibiblio.org/maven/,http://jakarta.apache.org/commons/validator/repo
   
  -#maven.checkstyle.format = validator
  +maven.checkstyle.properties = conf/share/ValidatorCheckStyle.xml
   
   # Include legacy javadoc in build
   maven.html2xdoc.dir = legacy
  
  
  

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



cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator/util Flags.java ValidatorUtils.java

2003-08-21 Thread rleland
rleland 2003/08/21 14:43:06

  Modified:validator/src/share/org/apache/commons/validator Arg.java
Constant.java CreditCardValidator.java
DateValidator.java EmailValidator.java Field.java
Form.java FormSet.java GenericTypeValidator.java
GenericValidator.java Msg.java UrlValidator.java
Validator.java ValidatorAction.java
ValidatorException.java ValidatorResources.java
ValidatorResourcesInitializer.java
ValidatorResult.java ValidatorResults.java
ValidatorUtil.java Var.java
   validator/src/share/org/apache/commons/validator/util
Flags.java ValidatorUtils.java
  Log:
  Remove TABS and fix some javadoc items
  
  Revision  ChangesPath
  1.13  +11 -9 
jakarta-commons/validator/src/share/org/apache/commons/validator/Arg.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Arg.java.diff?r1=1.12r2=1.13
  
  
  1.8   +15 -15
jakarta-commons/validator/src/share/org/apache/commons/validator/Constant.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Constant.java.diff?r1=1.7r2=1.8
  
  
  1.11  +189 -184  
jakarta-commons/validator/src/share/org/apache/commons/validator/CreditCardValidator.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/CreditCardValidator.java.diff?r1=1.10r2=1.11
  
  
  1.4   +94 -94
jakarta-commons/validator/src/share/org/apache/commons/validator/DateValidator.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/DateValidator.java.diff?r1=1.3r2=1.4
  
  
  1.10  +143 -139  
jakarta-commons/validator/src/share/org/apache/commons/validator/EmailValidator.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/EmailValidator.java.diff?r1=1.9r2=1.10
  
  
  1.23  +204 -198  
jakarta-commons/validator/src/share/org/apache/commons/validator/Field.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Field.java.diff?r1=1.22r2=1.23
  
  
  1.11  +42 -42
jakarta-commons/validator/src/share/org/apache/commons/validator/Form.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Form.java.diff?r1=1.10r2=1.11
  
  
  1.12  +72 -72
jakarta-commons/validator/src/share/org/apache/commons/validator/FormSet.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/FormSet.java.diff?r1=1.11r2=1.12
  
  
  1.10  +98 -98
jakarta-commons/validator/src/share/org/apache/commons/validator/GenericTypeValidator.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/GenericTypeValidator.java.diff?r1=1.9r2=1.10
  
  
  1.26  +229 -229  
jakarta-commons/validator/src/share/org/apache/commons/validator/GenericValidator.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/GenericValidator.java.diff?r1=1.25r2=1.26
  
  
  1.9   +8 -8  
jakarta-commons/validator/src/share/org/apache/commons/validator/Msg.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Msg.java.diff?r1=1.8r2=1.9
  
  
  1.16  +352 -352  
jakarta-commons/validator/src/share/org/apache/commons/validator/UrlValidator.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/UrlValidator.java.diff?r1=1.15r2=1.16
  
  
  1.28  +138 -138  
jakarta-commons/validator/src/share/org/apache/commons/validator/Validator.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Validator.java.diff?r1=1.27r2=1.28
  
  
  1.15  +265 -265  
jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorAction.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorAction.java.diff?r1=1.14r2=1.15
  
  
  1.6   +21 -21
jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorException.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorException.java.diff?r1=1.5r2=1.6
  
  
  1.27  +87 -86
jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorResources.java
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorResources.java.diff?r1=1.26r2=1.27
  
  
  1.19  +60 -59
jakarta-commons/validator/src/share/org/apache/commons/validator

cvs commit: jakarta-commons/validator/conf/share ValidatorCheckStyle.xml

2003-08-21 Thread rleland
rleland 2003/08/21 14:46:46

  Added:   validator/conf/share ValidatorCheckStyle.xml
  Log:
  Add a checkstyle.xml, this still needs to
  be voted on and trimmed down because it is very noisy.
  PMD is a better tool for most of these items.
  
  Revision  ChangesPath
  1.1  jakarta-commons/validator/conf/share/ValidatorCheckStyle.xml
  
  Index: ValidatorCheckStyle.xml
  ===
  ?xml version=1.0?
  !DOCTYPE module PUBLIC
  -//Puppy Crawl//DTD Check Configuration 1.1//EN
  http://www.puppycrawl.com/dtds/configuration_1_1.dtd;
  
  
  !--

These checks still need to be Voted on for Validator, but
at least serve to cut down on some of the noise. 
  
  
A Checkstyle configuration that checks against the recommendations
in Joshua Bloch, Effective Java (highliy recommended read!)
  
This file does NOT duplicate the checks for whitespace settings,
placement of curly braces, etc.  Only the rules that are explicitly
mentioned in the book are enforced.
  
Currently the amount of rules that can be automatically checked by
Checkstyle is not very large, but adding more checks of this quality
is a high priority goal for the development team.
  
  --
  
  module name=Checker
  
 module name=TreeWalker
  
  !-- Item 4 - Avoid creating duplicate objects --
  module name=IllegalInstantiation
property name=classes value=java.lang.Boolean, java.lang.String/
  /module
  
  !-- Item 6 - Avoid finalizers --
  !-- this will not find violations that contain linebreaks --
  module name=GenericIllegalRegexp
property name=format
  value=((public)|(protected))\s+void\s+finalize\(\s*\)/
  /module
  
  !-- Item 8 - Always override hashCode when you override equals --
  module name=EqualsHashCode/
  
  !-- Item 12 - Make all fields private --
  module name=VisibilityModifier/
  
  !-- Item 15 - Design and document for inheritance or else prohibit it --
  !-- the module actually implements a very strict rule, it would be
   interesting to know whether Joshua meant what checkstyle implements.
   We feel this implementation is well suited as a warning,
   i.e. if you get error messages from this check you should be
   able to name a good reason to implement your code the way you do it,
   especially if you are designing a library and not an application. --
  module name=DesignForExtension
property name=severity value=warning/
  /module
  
  !-- Item 17 - Use interfaces only to define types --
  module name=InterfaceIsType/
  
  !-- Item 25 - Design method signatures carefully --
  !-- Avoid long parameter lists --
  module name=ParameterNumber
property name=max value=3/
  /module
  
  !-- Item 26 - Use overloading judiciously --
  !-- rfe #659735 --
  
  !-- Item 27 - Return zero-length array, not nulls --
  !-- no rfe yet --
  
  !-- Item 28 - Write doc comments for all exposed API elements --
  module name=JavadocType
property name=scope value=protected/
  /module
  module name=JavadocMethod !-- also covers Item 44 --
property name=scope value=protected/
  /module
  module name=JavadocVariable
property name=scope value=protected/
  /module
  
  !-- Item 29 - Minimize the scope of local variables --
  !-- no rfe yet --
  
  
  !-- Item 38 - Adhere to generally accepted naming conventions --
  module name=PackageName
!-- no uppercase letters, between 2 and 10 characters --
property name=format value=^[a-z]+(\.[a-z][a-z0-9]{1,9})*$/
  /module
  module name=TypeName/
  module name=ConstantName/
  module name=LocalFinalVariableName/
  module name=LocalVariableName/
  module name=MemberName/
  module name=MethodName/
  module name=ParameterName/
  module name=StaticVariableName/
  
  !-- Item 47 - Don't ignore exceptions --
  module name=EmptyBlock
property name=tokens value=LITERAL_CATCH/
!-- require a comment, change to stmt to require a statement --
property name=option value=text/
  /module
  
  !-- Item 50 - Never invoke wait outside a loop --
  !-- rfe #712798 --
  
  !-- Item 57 - Provide a readResolve method when necessary --
  !-- no rfe yet --
  
  !-- don't allow tabs --
  module name=TabCharacter/
  
  !-- enforce License Header --
  module name=Header
 property name=headerFile value=LICENSE.txt/
 !-- Skip over CVS header variables. --
 property name=ignoreLines value=2,3,4,5/
  /module
  
/module
  
!-- enforce package documentation --
module name=PackageHtml/

  /module
  
  
  

-
To unsubscribe, e-mail

cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator GenericTypeValidator.java

2003-08-21 Thread rleland
rleland 2003/08/21 19:31:50

  Modified:validator/src/share/org/apache/commons/validator
GenericTypeValidator.java
  Log:
  place logging in empty catch block.
  
  Revision  ChangesPath
  1.11  +13 -5 
jakarta-commons/validator/src/share/org/apache/commons/validator/GenericTypeValidator.java
  
  Index: GenericTypeValidator.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/GenericTypeValidator.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- GenericTypeValidator.java 21 Aug 2003 21:43:05 -  1.10
  +++ GenericTypeValidator.java 22 Aug 2003 02:31:50 -  1.11
  @@ -67,6 +67,8 @@
   import java.text.DateFormat;
   import java.text.SimpleDateFormat;
   import java.text.ParseException;
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
   
   /**
* pThis class contains basic methods for performing validations that return the
  @@ -78,6 +80,10 @@
* @version $Revision$ $Date$
*/
   public class GenericTypeValidator implements Serializable {
  +/*
  +* Logger.
  +*/
  +   private static Log log = LogFactory.getLog(GenericTypeValidator.class);
   
   /**
* Checks if the value can safely be converted to a byte primitive.
  @@ -193,7 +199,7 @@
* is set to codefalse/code for all./p
*
* @param value The value validation is being performed on.
  - * @param Locale The Locale to use to parse the date (system default if null)
  + * @param locale The Locale to use to parse the date (system default if null)
*/
   public static Date formatDate(String value, Locale locale) {
   Date date = null;
  @@ -219,6 +225,7 @@
   date = formatter.parse(value);
   } catch(ParseException e) {
   // Bad date so return null
  +log.warn(value, e);
   }
   
   return date;
  @@ -257,6 +264,7 @@
   }
   } catch(ParseException e) {
   // Bad date so return null
  +log.warn(value, e);
   }
   
   return date;
  
  
  

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



cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator package.html

2003-08-21 Thread rleland
rleland 2003/08/21 19:32:11

  Modified:validator/src/share/org/apache/commons/validator
package.html
  Log:
  Spelling error
  
  Revision  ChangesPath
  1.2   +50 -50
jakarta-commons/validator/src/share/org/apache/commons/validator/package.html
  
  Index: package.html
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/package.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- package.html  13 Mar 2002 05:39:32 -  1.1
  +++ package.html  22 Aug 2003 02:32:11 -  1.2
  @@ -39,7 +39,7 @@
 /li
 liOptionally, an XML parser conforming to
   a href=http://java.sun.com/products/xml;JAXP
  -/a, version 1.1 or later (the first one to support SAX 2.0) 
  +/a, version 1.1 or later (the first one to support SAX 2.0)
for the Commons Digester
 /li
   
  @@ -48,21 +48,21 @@
   a name=doc.Intro/a
   h3Introduction/h3
   
  -pA common issue when receiving data either electronically or from 
  -user input is verifying the integrity of the data.  This work is 
  -repetitive and becomes even more complicated when different sets 
  -of validation rules need to be applied to the same set of data based 
  -on locale for example.  Error messages may also vary by locale.  
  -This package attempts to address some of these issues and 
  +pA common issue when receiving data either electronically or from
  +user input is verifying the integrity of the data.  This work is
  +repetitive and becomes even more complicated when different sets
  +of validation rules need to be applied to the same set of data based
  +on locale for example.  Error messages may also vary by locale.
  +This package attempts to address some of these issues and
   speed development and maintenance of validation rules.
   /p
   
   pIn order to use the Validator, the following basic steps are required:/p
   ul
  liCreate a new instance of the
  -   codeorg.apache.commons.validator.Validator/code class.  Currently 
  -   Validator instances may be safely reused if the current ValidatorResources 
  -   are the same, as long as 
  +   codeorg.apache.commons.validator.Validator/code class.  Currently
  +   Validator instances may be safely reused if the current ValidatorResources
  +   are the same, as long as
  you have completed any previous validation, and you do not try to utilize
  a particular Validator instance from more than one thread at a time./li
  liAdd any a href=#doc.Resourcesresources/a
  @@ -73,39 +73,39 @@
   a name=doc.Overview/a
   h3Overview/h3
   p
  -   The Commons Validator is a basic validation framework that 
  -   lets you define validation rules for a JavaBean in an xml file.  
  -   Validators, the validation definition, can also be defined in 
  -   the xml file.  An example of a validator would be defining 
  -   what method and class will be called to perform the validation 
  -   for a required field.  Validation rules can be grouped together 
  -   based on locale and a JavaBean/Form that the rules are associated 
  -   with.  The framework has basic support for user defined constants 
  -   which can be used in some field attributes. 
  -/p
  -p
  -   Validation rules can be defined in an xml file which keeps 
  -   them abstracted from JavaBean you are validating.  The 
  -   property reference to a field supports nested properties 
  -   using the Jakarta Commons BeanUtils 
  -   (http://jakarta.apache.org/commons/beanutils.html) package.  
  -   Error messages and the arguments for error messages can be 
  +   The Commons Validator is a basic validation framework that
  +   lets you define validation rules for a JavaBean in an xml file.
  +   Validators, the validation definition, can also be defined in
  +   the xml file.  An example of a validator would be defining
  +   what method and class will be called to perform the validation
  +   for a required field.  Validation rules can be grouped together
  +   based on locale and a JavaBean/Form that the rules are associated
  +   with.  The framework has basic support for user defined constants
  +   which can be used in some field attributes.
  +/p
  +p
  +   Validation rules can be defined in an xml file which keeps
  +   them abstracted from JavaBean you are validating.  The
  +   property reference to a field supports nested properties
  +   using the Jakarta Commons BeanUtils
  +   (http://jakarta.apache.org/commons/beanutils.html) package.
  +   Error messages and the arguments for error messages can be
  associated with a fields validation.
   /p
   
   a name=doc.Resources/a
   h3Resources/h3
   p
  -   After a Validator instance is created, instances of 
  -   classes can be added to it to be passed into 
  -   validation methods by calling the addResource 
  +   After

cvs commit: jakarta-commons/validator project.xml

2003-08-21 Thread rleland
rleland 2003/08/21 19:35:24

  Modified:validator project.xml
  Log:
  Remove unneeded reports
  
  Revision  ChangesPath
  1.19  +0 -2  jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- project.xml   21 Aug 2003 21:44:59 -  1.18
  +++ project.xml   22 Aug 2003 02:35:24 -  1.19
  @@ -186,11 +186,9 @@
   reportmaven-jxr-plugin/report
   reportmaven-junit-report-plugin/report
   reportmaven-tasklist-plugin/report
  -reportmaven-jellydoc-plugin/report
   reportmaven-pmd-plugin/report
   reportmaven-simian-plugin/report
   reportmaven-faq-plugin/report
  -reportmaven-html2xdoc-plugin/report
 /reports
   
   /project
  
  
  

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



cvs commit: jakarta-commons/validator/xdocs faq.fml faq.xml

2003-08-21 Thread rleland
rleland 2003/08/21 21:20:48

  Added:   validator/xdocs faq.fml
  Removed: validator/xdocs faq.xml
  Log:
  Maven now calls faq.xml files faq.fml
  
  Revision  ChangesPath
  1.1  jakarta-commons/validator/xdocs/faq.fml
  
  Index: faq.fml
  ===
  ?xml version=1.0?
  
  document
  
properties
  titleValidator FAQ/title
/properties
  
body
  
section name=Frequently Asked Questions
  p
This document will be derived from the FAQ maintained in the 
a href='http://nagoya.apache.org/wiki/apachewiki.cgi?ValidatorProjectPages'
Validator Wiki/a.So these questions and answers are user provided.
and should be searched before posting to the mailing lists.  
  /p
  
  pstrongBuilding Validator/strong/p
  ol
li
  a href=#how-to-build
How do I build Validator?
  /a
/li
  /ol
  
  
  subsection name=Building Validator
dl
  dt
a name=how-to-build
  How do I build Validator?
/a
  /dt
  dd
Validator uses Maven for its build system. So you should be able to build 
Validator just like
any other Maven enabled project. By typing'maven' Please see the 
a href=http://maven.apache.org/start/index.html;Maven/a 
documentation for details.
  /dd
/dl
  /subsection
/section
  /body
  /document
  
  
  

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



cvs commit: jakarta-commons/validator/xdocs/images Validatorlogo.gif

2003-08-21 Thread rleland
rleland 2003/08/21 21:24:34

  Added:   validator/xdocs/images Validatorlogo.gif
  Log:
  Add Validator logo
  
  Revision  ChangesPath
  1.1  jakarta-commons/validator/xdocs/images/Validatorlogo.gif
  
Binary file
  
  

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



cvs commit: jakarta-commons/validator build.xml

2003-08-21 Thread rleland
rleland 2003/08/21 21:24:58

  Modified:validator build.xml
  Log:
  Change version value
  
  Revision  ChangesPath
  1.24  +3 -3  jakarta-commons/validator/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/build.xml,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- build.xml 18 May 2003 21:25:16 -  1.23
  +++ build.xml 22 Aug 2003 04:24:58 -  1.24
  @@ -19,7 +19,7 @@
   
   
 !-- The directories corresponding to your necessary dependencies --
  -  property name=junit.home  value=/usr/local/junit3.7/
  +  property name=junit.home  value=/usr/local/junit3.8.1/
 property name=commons.homevalue=../../jakarta-commons/
 property name=sandbox.homevalue=../../jakarta-commons-sandbox/
 property name=beanutils.home  value=${commons.home}/beanutils/
  @@ -52,7 +52,7 @@
 property name=component.title value=Validator/
   
 !-- The current version number of this component --
  -  property name=component.version   value=1.1-dev/
  +  property name=component.version   value=1.1.0-dev/
   
 !-- The base directory for compilation targets --
 property name=build.home  value=target/
  
  
  

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



cvs commit: jakarta-commons/validator/xdocs tasks.xml

2003-08-21 Thread rleland
rleland 2003/08/21 21:15:25

  Modified:validator/xdocs tasks.xml
  Log:
  Change note, deprecated functionality will go away in
  1.2.0, not 1.1.1.
  Also note thet ORO will likely in gfuture be able to use Java 1.4 engine.
  
  Revision  ChangesPath
  1.5   +11 -2 jakarta-commons/validator/xdocs/tasks.xml
  
  Index: tasks.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/xdocs/tasks.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- tasks.xml 19 Aug 2003 00:46:50 -  1.4
  +++ tasks.xml 22 Aug 2003 04:15:25 -  1.5
  @@ -17,7 +17,7 @@
   subsection name=High priority 
 ul
li
  - Remove deprecated functionality after 1.1.1 release.
  + Remove functionality deprecated in 1.1.0 release in 1.2.0 
release.
/li
  /ul
   /subsection
  @@ -32,12 +32,21 @@
non-form based environments.
/li
li
  + Scenario one:
Replace the Jakarta ORO regex engine with the standard Java 
1.4 engine.  Preliminary tests show a 
50% speed improvement using the standard engine.  This will 
remove the ORO dependency and
bring Validator in line with standard Java regular 
expressions.  However, this requires a move
to Java 1.4 as the base required Java version.  A good time 
for this move may be Validator 2.0 when
we also change the configuration file semantics.
/li
  + li
  + Much more likely Scenario:
  + ORO provides a much richer interface to regular expression, 
such that we don't have
  + to worry about bit twiddling, this includes a pluggable regex 
engine. Jeffrey E Friedl states
  + in Mastering Regular Expressions 2ed, says that in speaking to 
the ORO developers that they
  + will likely develop an adapter to the Java 1.4 regex, See page 
378. So we get use of ORO and the speed of 
  + Java 1.4 Regex engine. 
  + /li
 /ul
   /subsection
   
  @@ -60,7 +69,7 @@
Make Arg system more flexible to allow any number of args in a 
message.
/li
li
  - Validate vaildation.xml files while initializing a Validator 
to alert developers to configuration
  + Validate validation.xml files while initializing a Validator 
to alert developers to configuration
errors.
/li
li
  
  
  

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



cvs commit: jakarta-commons/validator/src/test/org/apache/commons/validator EmailTest.java

2003-08-21 Thread rleland
rleland 2003/08/21 21:22:42

  Modified:validator/src/test/org/apache/commons/validator
EmailTest.java
  Log:
  Cleanup tests I had slightly misinterpreted RFC822 at first.
  
  Revision  ChangesPath
  1.18  +53 -23
jakarta-commons/validator/src/test/org/apache/commons/validator/EmailTest.java
  
  Index: EmailTest.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/EmailTest.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- EmailTest.java17 Aug 2003 04:21:05 -  1.17
  +++ EmailTest.java22 Aug 2003 04:22:42 -  1.18
  @@ -202,9 +202,9 @@
 valueTest(info, true);
   
 info.setValue([EMAIL PROTECTED]);
  -   valueTest(info, false);
  +   valueTest(info, true);
  info.setValue([EMAIL PROTECTED]);
  -   valueTest(info, false);
  +   valueTest(info,true);
  info.setValue([EMAIL PROTECTED]);
  valueTest(info, true);
   
  @@ -261,8 +261,6 @@
   /**
* Write this test according to parts of RFC, as opposed to the type of 
character
* that is being tested.
  - * According to RFC 1738 a user name can be composed of the following :
  - *  *[alpha | digit | $ | - | _ | . | +  | ! | * | ' | ( | 
) | , | % hex hex | ; | ? |  | = ]
   
* @throws ValidatorException
*/
  @@ -276,32 +274,64 @@
   valueTest(info, true);
   info.setValue([EMAIL PROTECTED]);
   valueTest(info, true);
  +
  +//UnQuoted Special characters are invalid
  +
   info.setValue([EMAIL PROTECTED]);
  -valueTest(info, true);
  +valueTest(info, false);
   info.setValue([EMAIL PROTECTED]);
  -valueTest(info, true);
  +valueTest(info, false);
   info.setValue([EMAIL PROTECTED]);
  -valueTest(info, true);
  +valueTest(info, false);
   info.setValue([EMAIL PROTECTED]);
  -valueTest(info, true);
  +valueTest(info, false);
   info.setValue(joe'@apache.org);
  -valueTest(info, true);
  +valueTest(info, false);
   info.setValue(joe(@apache.org);
  -valueTest(info, true);
  +valueTest(info, false);
   info.setValue(joe)@apache.org);
  -valueTest(info, true);
  +valueTest(info, false);
   info.setValue(joe,@apache.org);
  -valueTest(info, true);
  +valueTest(info, false);
   info.setValue([EMAIL PROTECTED]);
  -valueTest(info, true);
  +valueTest(info, false);
   info.setValue(joe;@apache.org);
  -valueTest(info, true);
  +valueTest(info, false);
   info.setValue([EMAIL PROTECTED]);
  -valueTest(info, true);
  +valueTest(info, false);
   info.setValue(joe@apache.org);
  -valueTest(info, true);
  +valueTest(info, false);
   info.setValue([EMAIL PROTECTED]);
  +valueTest(info, false);
  +
  +//Quoted Special characters are valid
  +info.setValue(\joe.\@apache.org);
  +valueTest(info, true);
  +info.setValue(\joe+\@apache.org);
  +valueTest(info, true);
  +info.setValue(\joe!\@apache.org);
   valueTest(info, true);
  +info.setValue(\joe*\@apache.org);
  +valueTest(info, true);
  +info.setValue(\joe'\@apache.org);
  +valueTest(info, true);
  +info.setValue(\joe(\@apache.org);
  +valueTest(info, true);
  +info.setValue(\joe)\@apache.org);
  +valueTest(info, true);
  +info.setValue(\joe,\@apache.org);
  +valueTest(info, true);
  +info.setValue(\joe%45\@apache.org);
  +valueTest(info, true);
  +info.setValue(\joe;\@apache.org);
  +valueTest(info, true);
  +info.setValue(\joe?\@apache.org);
  +valueTest(info, true);
  +info.setValue(\joe\@apache.org);
  +valueTest(info, true);
  +info.setValue(\joe=\@apache.org);
  +valueTest(info, true);
  +
   
   }
   
  @@ -313,7 +343,7 @@
   * @param infoValue to run test on.
   * @param passed  Whether or not the test is expected to pass.
  */
  -   private void valueTest(Object info, boolean passed) throws ValidatorException {
  +   private void valueTest(ValueBean info, boolean passed) throws ValidatorException 
{
 // Construct validator based on the loaded resources 
 // and the form key
 Validator validator = new Validator(resources, FORM_KEY);
  @@ -335,7 +365,7 @@
 ValidatorResult result = results.getValidatorResult(value);
   
 assertNotNull(ACTION +  value ValidatorResult should not be null., result);
  -  assertTrue(ValidatorResult should contain the ' + ACTION +' action., 
result.containsAction(ACTION

cvs commit: jakarta-commons/validator/legacy/1.0.2/api/org/apache/commons/validator - New directory

2003-08-19 Thread rleland
rleland 2003/08/19 18:19:26

  jakarta-commons/validator/legacy/1.0.2/api/org/apache/commons/validator - New 
directory

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



cvs commit: jakarta-commons/validator/legacy - New directory

2003-08-19 Thread rleland
rleland 2003/08/19 18:17:59

  jakarta-commons/validator/legacy - New directory

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



cvs commit: jakarta-commons/validator/legacy/1.0.2/api - New directory

2003-08-19 Thread rleland
rleland 2003/08/19 18:18:14

  jakarta-commons/validator/legacy/1.0.2/api - New directory

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



cvs commit: jakarta-commons/validator/legacy/1.0.2 - New directory

2003-08-19 Thread rleland
rleland 2003/08/19 18:18:07

  jakarta-commons/validator/legacy/1.0.2 - New directory

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



cvs commit: jakarta-commons/validator/legacy/1.0.2/api/org/apache - New directory

2003-08-19 Thread rleland
rleland 2003/08/19 18:19:12

  jakarta-commons/validator/legacy/1.0.2/api/org/apache - New directory

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



cvs commit: jakarta-commons/validator/legacy/1.0.2/api/org - New directory

2003-08-19 Thread rleland
rleland 2003/08/19 18:19:05

  jakarta-commons/validator/legacy/1.0.2/api/org - New directory

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



cvs commit: jakarta-commons/validator/legacy/1.0.2/api/org/apache/commons/validator Arg.html Constant.html Field.html Form.html FormSet.html GenericTypeValidator.html GenericValidator.html Msg.html Validator.html ValidatorAction.html ValidatorException.html ValidatorResources.html ValidatorResourcesInitializer.html ValidatorResult.ResultStatus.html ValidatorResult.html ValidatorResults.html ValidatorUtil.html Var.html package-frame.html package-summary.html package-tree.html

2003-08-19 Thread rleland
rleland 2003/08/19 18:27:54

  Added:   validator/legacy/1.0.2/api allclasses-frame.html
allclasses-noframe.html constant-values.html
deprecated-list.html help-doc.html index-all.html
index.html overview-tree.html package-list
packages.html serialized-form.html stylesheet.css
   validator/legacy/1.0.2/api/org/apache/commons/validator
Arg.html Constant.html Field.html Form.html
FormSet.html GenericTypeValidator.html
GenericValidator.html Msg.html Validator.html
ValidatorAction.html ValidatorException.html
ValidatorResources.html
ValidatorResourcesInitializer.html
ValidatorResult.ResultStatus.html
ValidatorResult.html ValidatorResults.html
ValidatorUtil.html Var.html package-frame.html
package-summary.html package-tree.html
  Log:
  Place Validator 1.0.2 javadoc in CVS for reference.
  
  Revision  ChangesPath
  1.1  jakarta-commons/validator/legacy/1.0.2/api/allclasses-frame.html
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/allclasses-frame.html?rev=1.1
  
  
  1.1  
jakarta-commons/validator/legacy/1.0.2/api/allclasses-noframe.html
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/allclasses-noframe.html?rev=1.1
  
  
  1.1  jakarta-commons/validator/legacy/1.0.2/api/constant-values.html
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/constant-values.html?rev=1.1
  
  
  1.1  jakarta-commons/validator/legacy/1.0.2/api/deprecated-list.html
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/deprecated-list.html?rev=1.1
  
  
  1.1  jakarta-commons/validator/legacy/1.0.2/api/help-doc.html
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/help-doc.html?rev=1.1
  
  
  1.1  jakarta-commons/validator/legacy/1.0.2/api/index-all.html
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/index-all.html?rev=1.1
  
  
  1.1  jakarta-commons/validator/legacy/1.0.2/api/index.html
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/index.html?rev=1.1
  
  
  1.1  jakarta-commons/validator/legacy/1.0.2/api/overview-tree.html
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/overview-tree.html?rev=1.1
  
  
  1.1  jakarta-commons/validator/legacy/1.0.2/api/package-list
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/package-list?rev=1.1
  
  
  1.1  jakarta-commons/validator/legacy/1.0.2/api/packages.html
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/packages.html?rev=1.1
  
  
  1.1  jakarta-commons/validator/legacy/1.0.2/api/serialized-form.html
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/serialized-form.html?rev=1.1
  
  
  1.1  jakarta-commons/validator/legacy/1.0.2/api/stylesheet.css
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/stylesheet.css?rev=1.1
  
  
  1.1  
jakarta-commons/validator/legacy/1.0.2/api/org/apache/commons/validator/Arg.html
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/org/apache/commons/validator/Arg.html?rev=1.1
  
  
  1.1  
jakarta-commons/validator/legacy/1.0.2/api/org/apache/commons/validator/Constant.html
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/org/apache/commons/validator/Constant.html?rev=1.1
  
  
  1.1  
jakarta-commons/validator/legacy/1.0.2/api/org/apache/commons/validator/Field.html
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/org/apache/commons/validator/Field.html?rev=1.1
  
  
  1.1  
jakarta-commons/validator/legacy/1.0.2/api/org/apache/commons/validator/Form.html
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/org/apache/commons/validator/Form.html?rev=1.1
  
  
  1.1  
jakarta-commons/validator/legacy/1.0.2/api/org/apache/commons/validator/FormSet.html
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/org/apache/commons/validator/FormSet.html?rev=1.1
  
  
  1.1  
jakarta-commons/validator/legacy/1.0.2/api/org/apache/commons/validator/GenericTypeValidator.html
  
  
http://cvs.apache.org/viewcvs/jakarta-commons/validator/legacy/1.0.2/api/org/apache/commons/validator/GenericTypeValidator.html?rev=1.1
  
  
  1.1

cvs commit: jakarta-commons/validator project.xml

2003-08-19 Thread rleland
rleland 2003/08/19 21:17:09

  Modified:validator project.xml
  Log:
  Fix package so JavaDoc is generated properly
  
  Revision  ChangesPath
  1.16  +2 -2  jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- project.xml   19 Aug 2003 01:21:14 -  1.15
  +++ project.xml   20 Aug 2003 04:17:09 -  1.16
  @@ -8,7 +8,7 @@
 
 inceptionYear2002/inceptionYear
 gumpRepositoryIdjakarta/gumpRepositoryId
  -  packageorg.apache.commons.validator.*/package
  +  packageorg.apache.commons.validator/package
   
 shortDescriptionCommons Validator/shortDescription
 logo/images/logo.gif/logo
  @@ -190,7 +190,7 @@
   reportmaven-pmd-plugin/report
   reportmaven-simian-plugin/report
   reportmaven-faq-plugin/report
  -reportmaven-multiproject-plugin/report
  +  !--  reportmaven-html2xdoc-plugin/report --
 /reports
   
   /project
  
  
  

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



cvs commit: jakarta-commons/validator maven.xml

2003-08-19 Thread rleland
rleland 2003/08/19 21:19:15

  Modified:validator maven.xml
  Log:
  Enable html-xdoc for Validator 1.0.2 javadoc
  For a documentation system you gotta dig into the
  source code to get this to work. Sometimes
  you can't see the trees for the Forrest
  
  Revision  ChangesPath
  1.3   +4 -0  jakarta-commons/validator/maven.xml
  
  Index: maven.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/maven.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- maven.xml 5 Jun 2003 01:26:19 -   1.2
  +++ maven.xml 20 Aug 2003 04:19:15 -  1.3
  @@ -1,5 +1,9 @@
   project default=java:jar
   
  +  preGoal name=xdoc:jelly-transform
  +attainGoal name=html2xdoc/
  +  /preGoal
  +
 postGoal name=java:compile
   
   copytodir=${maven.build.dir}/classes/
  
  
  

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



cvs commit: jakarta-commons/validator project.properties

2003-08-19 Thread rleland
rleland 2003/08/19 21:19:53

  Added:   validator project.properties
  Log:
  Set directory for html conversion
  
  Revision  ChangesPath
  1.1  jakarta-commons/validator/project.properties
  
  Index: project.properties
  ===
  
  # ---
  # P R O J E C T  P R O P E R T I E S - Modeled after Turbine project.properties
  #
  # $Id: project.properties,v 1.1 2003/08/20 04:19:53 rleland Exp $
  #
  # Do not change this file. Please use build.properties in this directory
  # to do site or installation specific changes to the project build.
  # ---
  
  #
  # You can uncomment this if you're willing to use the unofficial
  # Validator-specific jar repository at the Validator site. This will
  # contain all the jars needed to build Validator, even if a jar
  # is missing on ibiblio
  #
  
#maven.repo.remote=http://www.ibiblio.org/maven/,http://jakarta.apache.org/commons/validator/repo
  
  #maven.checkstyle.format = validator
  
  # Include legacy javadoc in build
  maven.html2xdoc.dir = legacy
  
  # display the date on the site
  maven.xdoc.date = left
  # Display the version the web site is documenting
  maven.xdoc.version = ${pom.currentVersion}
  
  compile.debug = on
  compile.optimize = off
  compile.deprecation = on
  maven.compile.deprecation = on
  
  # ---
  # N I G H T L Y   B U I L D   P R O P E R T I E S
  # ---
  
  validator.nightly.dist.dir = \
  /www/jakarta.apache.org/builds/jakarta-commons/validator/nightly
  
  

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



cvs commit: jakarta-commons/validator project.xml

2003-08-19 Thread rleland
rleland 2003/08/19 22:07:40

  Modified:validator project.xml
  Log:
  Change logo
  
  Revision  ChangesPath
  1.17  +1 -1  jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- project.xml   20 Aug 2003 04:17:09 -  1.16
  +++ project.xml   20 Aug 2003 05:07:40 -  1.17
  @@ -11,7 +11,7 @@
 packageorg.apache.commons.validator/package
   
 shortDescriptionCommons Validator/shortDescription
  -  logo/images/logo.gif/logo
  +  logo/images/Validatorlogo.gif/logo
   
 description
   Commons Validator provides the building blocks for both client side validation
  
  
  

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



cvs commit: jakarta-commons/validator project.xml

2003-08-18 Thread rleland
rleland 2003/08/18 18:21:14

  Modified:validator project.xml
  Log:
  Add reports to build.
  
  Revision  ChangesPath
  1.15  +30 -1 jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- project.xml   18 Aug 2003 05:03:00 -  1.14
  +++ project.xml   19 Aug 2003 01:21:14 -  1.15
  @@ -15,7 +15,7 @@
   
 description
   Commons Validator provides the building blocks for both client side validation
  -and server side data validation. It may be used standalone on with a framework 
like
  +and server side data validation. It may be used standalone or with a framework 
like
   Struts.
 /description
 urlhttp://jakarta.apache.org/commons/validator//url
  @@ -163,5 +163,34 @@
   
   
 /build
  +
  +  reports
  +!--
  + |
  + | These should all be completely self contained. You should be able
  + | to generate each of them individually without needing the final
  + | xdoc transformation.
  + |
  + | Each report plugin with it's POM and plugin.jelly logic should
  + | contain everything needed to produced the report.
  + |
  +--
  +
  +reportmaven-jdepend-plugin/report
  +reportmaven-checkstyle-plugin/report
  +reportmaven-changes-plugin/report
  +reportmaven-changelog-plugin/report
  +reportmaven-file-activity-plugin/report
  +reportmaven-developer-activity-plugin/report
  +reportmaven-javadoc-plugin/report
  +reportmaven-jxr-plugin/report
  +reportmaven-junit-report-plugin/report
  +reportmaven-tasklist-plugin/report
  +reportmaven-jellydoc-plugin/report
  +reportmaven-pmd-plugin/report
  +reportmaven-simian-plugin/report
  +reportmaven-faq-plugin/report
  +reportmaven-multiproject-plugin/report
  +  /reports
   
   /project
  
  
  

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



cvs commit: jakarta-commons/validator LICENSE.txt

2003-08-17 Thread rleland
rleland 2003/08/17 21:53:02

  Modified:validator LICENSE.txt
  Log:
  Correct misspelling in license, update wording to
  1.1 license items, and remove RCS/CVS info because
  Checkstyle belches at it.
  
  Revision  ChangesPath
  1.2   +5 -9  jakarta-commons/validator/LICENSE.txt
  
  Index: LICENSE.txt
  ===
  RCS file: /home/cvs/jakarta-commons/validator/LICENSE.txt,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LICENSE.txt   25 Jul 2002 02:36:46 -  1.1
  +++ LICENSE.txt   18 Aug 2003 04:53:01 -  1.2
  @@ -1,13 +1,9 @@
   /*
  - * $Header$
  - * $Revision$
  - * $Date$
  - *
* 
*
* The Apache Software License, Version 1.1
*
  - * Copyright (c) 1999-2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2003 The Apache Software Foundation.  All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
  @@ -23,20 +19,20 @@
*distribution.
*
* 3. The end-user documentation included with the redistribution, if
  - *any, must include the following acknowlegement:
  + *any, must include the following acknowledgement:
*   This product includes software developed by the
*Apache Software Foundation (http://www.apache.org/).
*Alternately, this acknowlegement may appear in the software itself,
*if and wherever such third-party acknowlegements normally appear.
*
  - * 4. The names The Jakarta Project, Commons, and Apache Software
  + * 4. The names, Apache, The Jakarta Project, Commons, and Apache Software
*Foundation must not be used to endorse or promote products derived
*from this software without prior written permission. For written
*permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called Apache
  - *nor may Apache appear in their names without prior written
  - *permission of the Apache Group.
  + *nor may Apache appear in their name, without prior written
  + *permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  
  
  

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



cvs commit: jakarta-commons/validator/xdocs community.xml faq.xml navigation.xml resources.xml tasks.xml

2003-08-17 Thread rleland
rleland 2003/08/17 22:02:48

  Added:   validator/xdocs community.xml faq.xml navigation.xml
resources.xml tasks.xml
  Log:
  Update Maven generation of site.
  Include Validator Wiki, and other
  usefull items. Using Betwixt a a good example.
  
  Revision  ChangesPath
  1.1  jakarta-commons/validator/xdocs/community.xml
  
  Index: community.xml
  ===
  ?xml version=1.0?
  
  document
properties
  titleCommunity/title
  author email=[EMAIL PROTECTED]Robert Leland/author
/properties
  
body
  section name=On The Apache Wiki
  p
 The Apache Wiki is a Wiki run by Apache for the Apache community. The 
Validator Wiki home page is
 a 
href='http://nagoya.apache.org/wiki/apachewiki.cgi?ValidatorProjectPages'here/a.
  /p
  p
Anyone is welcome to create new content about Validator providing that 
they 
observe the usual rules of netiquette.
  /p
  /section
/body
  /document
  
  
  
  
  1.1  jakarta-commons/validator/xdocs/faq.xml
  
  Index: faq.xml
  ===
  ?xml version=1.0?
  
  document
  
properties
  titleValidator FAQ/title
/properties
  
body
  
section name=Frequently Asked Questions
  p
This document will be derived from the FAQ maintained in the 
a href='http://nagoya.apache.org/wiki/apachewiki.cgi?ValidatorProjectPages'
Validator Wiki/a.So these questions and answers are user provided.
and should be searched before posting to the mailing lists.  
  /p
  
  pstrongBuilding Validator/strong/p
  ol
li
  a href=#how-to-build
How do I build Validator?
  /a
/li
  /ol
  
  
  subsection name=Building Validator
dl
  dt
a name=how-to-build
  How do I build Validator?
/a
  /dt
  dd
Validator uses Maven for its build system. So you should be able to build 
Validator just like
any other Maven enabled project. By typing'maven' Please see the 
a href=http://maven.apache.org/start/index.html;Maven/a 
documentation for details.
  /dd
/dl
  /subsection
/section
  /body
  /document
  
  
  
  1.1  jakarta-commons/validator/xdocs/navigation.xml
  
  Index: navigation.xml
  ===
  ?xml version=1.0 encoding=ISO-8859-1?
  project name=Validator
  
titleValidator/title
organizationLogo href=/images/jakarta-logo-blue.gifJakarta/organizationLogo
  
body
  menu name=Validator
item name=Overviewhref=/index.html/
item name=FAQ href=/faq.html/
item name=Community   href=/community.html/
item name=To Do List  href=/tasks.html/
item name=Resources   href=/resources.html/
  /menu
/body
  /project
  
  
  
  1.1  jakarta-commons/validator/xdocs/resources.xml
  
  Index: resources.xml
  ===
  ?xml version=1.0?
  
  document
  
properties
  titleValidator Resources/title
/properties
  
body
  
section name=Struts Console
  p
   The Struts Console is a FREE standalone Java Swing application for managing 
   Struts-related configuration files, including Commons Validator config files.
   The Struts Console also plugs into mulitple, popular Java IDEs for seamless
   management of config files from one central development tool.
  
   a href='http://www.jamesholmes.com/struts/'Struts Console/a
  
  /p
  
/section
  /body
  /document
  
  
  
  1.1  jakarta-commons/validator/xdocs/tasks.xml
  
  Index: tasks.xml
  ===
  ?xml version=1.0?
  
  document
properties
  titleTODO/title
  author email=[EMAIL PROTECTED]Robert Leland/author
/properties
  
body
  section name=TODO list
p
  The following is a list of items that need to be completed in
  Validator.  Contributions are welcome! 
/p
  
  subsection name=High priority 
ul
 /ul
  /subsection
  
  subsection name=Medium priority 
ul
/ul
  /subsection
  
  subsection name=Low priority 
ul
 /ul
  /subsection
  /section
  section name='Completed'
  subsection name='Since 1.0.2 Release'
  ul
   /ul
  /subsection
  /section
  section name='Deprecated'
  subsection name='Since 1.0.2 Release'
  ul
  /ul
  /subsection
  /section

cvs commit: jakarta-commons/validator project.xml

2003-08-17 Thread rleland
rleland 2003/08/17 22:03:00

  Modified:validator project.xml
  Log:
  Update Maven generation of site.
  Include Validator Wiki, and other
  usefull items. Using Betwixt a a good example.
  
  Revision  ChangesPath
  1.14  +28 -6 jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- project.xml   17 Aug 2003 04:26:03 -  1.13
  +++ project.xml   18 Aug 2003 05:03:00 -  1.14
  @@ -5,6 +5,7 @@
 nameValidator/name
 idcommons-validator/id
 currentVersion1.1.0-dev/currentVersion
  +  
 inceptionYear2002/inceptionYear
 gumpRepositoryIdjakarta/gumpRepositoryId
 packageorg.apache.commons.validator.*/package
  @@ -17,12 +18,26 @@
   and server side data validation. It may be used standalone on with a framework 
like
   Struts.
 /description
  -  
 urlhttp://jakarta.apache.org/commons/validator//url
  + 
 issueTrackingUrlhttp://nagoya.apache.org/bugzilla//issueTrackingUrl
 siteAddressjakarta.apache.org/siteAddress
 siteDirectory/www/jakarta.apache.org/commons/validator//siteDirectory
 
distributionDirectoryhttp://jakarta.apache.org/site/binindex.cgi/distributionDirectory
  +  mailingLists
  +mailingList
  +  nameCommons Dev List/name
  +  subscribe[EMAIL PROTECTED]/subscribe
  +  unsubscribe[EMAIL PROTECTED]/unsubscribe
  +  archivehttp://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]/archive
  +/mailingList
  +mailingList
  +  nameCommons User List/name
  +  subscribe[EMAIL PROTECTED]/subscribe
  +  unsubscribe[EMAIL PROTECTED]/unsubscribe
  +  archivehttp://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]/archive
  +/mailingList
  +  /mailingLists
   
 developers
   developer
  @@ -73,40 +88,47 @@
 /contributors
 
 dependencies
  +
  +dependency
  +  idcommons-logging/id
  +  version1.0.3/version
  +  urlhttp://jakarta.apache.org/commons/logging.html/url
  +/dependency
   
   dependency
 idcommons-beanutils/id
 version1.6.1/version
  +  urlhttp://jakarta.apache.org/commons/beanutils.html/url
   /dependency
   
   dependency
 idcommons-collections/id
 version2.1/version
  +  urlhttp://jakarta.apache.org/commons/collections.html/url
   /dependency
   
   dependency
 idcommons-digester/id
 version1.5/version
  +  urlhttp://jakarta.apache.org/commons/digester.html/url
   /dependency
   
   dependency
  -  idcommons-logging/id
  -  version1.0.3/version
  -/dependency
  -
  -dependency
 idoro/id
 version2.0.6/version
  +  urlhttp://jakarta.apache.org/oro//url
   /dependency
   
   dependency
 idxml-apis/id
 version2.0.2/version
  +  urlhttp://xml.apache.org/commons//url
   /dependency
   
   dependency
 idjunit/id
 version3.8.1/version
  +  urlhttp://www.junit.org/url
   /dependency
   
 /dependencies
  
  
  

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



cvs commit: jakarta-commons/xdocs/images jakarta-logo-blue.gif

2003-08-17 Thread rleland
rleland 2003/08/17 22:21:13

  Added:   xdocs/images jakarta-logo-blue.gif
  Log:
  This is the refined Jakarta Symbol that Maven uses,
  not the same as the one under
  jakarta.apache.org/images/jakarta-logo-blue.gif
  I couldn't find it anywhere else.
  I believe this was contributed about 18 months ago.
  
  Revision  ChangesPath
  1.1  jakarta-commons/xdocs/images/jakarta-logo-blue.gif
  
Binary file
  
  

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



cvs commit: jakarta-commons/xdocs/images jakarta-logo-blue.gif

2003-08-17 Thread rleland
rleland 2003/08/17 22:24:48

  Removed: xdocs/images jakarta-logo-blue.gif
  Log:
  Ok, I was wrong the logo is at the top level !

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



cvs commit: jakarta-commons/validator/src/test/org/apache/commons/validator EmailTest.java

2003-08-16 Thread rleland
rleland 2003/08/16 21:21:05

  Modified:validator/src/test/org/apache/commons/validator
EmailTest.java
  Log:
  Bug 22124
  
  Add tests so Email validation will fail.
  These tests test for all special characters allowed in the users
  part of the email. Both serverside java and javascript need to be fixed.
  
  Revision  ChangesPath
  1.17  +73 -17
jakarta-commons/validator/src/test/org/apache/commons/validator/EmailTest.java
  
  Index: EmailTest.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/EmailTest.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- EmailTest.java12 Aug 2003 00:29:34 -  1.16
  +++ EmailTest.java17 Aug 2003 04:21:05 -  1.17
  @@ -7,7 +7,7 @@
*
* The Apache Software License, Version 1.1
*
  - * Copyright (c) 1999-2003 The Apache Software Foundation.  All rights
  + * Copyright (c) 2000-2003 The Apache Software Foundation.  All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
  @@ -36,7 +36,7 @@
*
* 5. Products derived from this software may not be called Apache
*nor may Apache appear in their names without prior written
  - *permission of the Apache Group.
  + *permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  @@ -77,6 +77,7 @@
*
* @author David Winterfeldt
* @author David Graham
  + * @author Rob Leland
* @version $Revision$ $Date$
   */   
   public class EmailTest extends TestCase {
  @@ -200,8 +201,12 @@
 info.setValue([EMAIL PROTECTED]);
 valueTest(info, true);
   
  -  info.setValue([EMAIL PROTECTED]);
  -  valueTest(info, true);
  +  info.setValue([EMAIL PROTECTED]);
  +   valueTest(info, false);
  +   info.setValue([EMAIL PROTECTED]);
  +   valueTest(info, false);
  +   info.setValue([EMAIL PROTECTED]);
  +   valueTest(info, true);
   
   
  }
  @@ -241,15 +246,66 @@
  /**
   * Tests the email validation with commas.
   */
  -   public void testEmailWithCommas() throws ValidatorException {
  -  ValueBean info = new ValueBean();
  -  info.setValue(joe,[EMAIL PROTECTED]);
  -  valueTest(info, false);
  -  info.setValue([EMAIL PROTECTED],che.org);
  -  valueTest(info, false);
  -  info.setValue([EMAIL PROTECTED],rg);
  -  valueTest(info, false);
  -   }
  +
  +public void testEmailWithCommas() throws ValidatorException {
  +   ValueBean info = new ValueBean();
  +   info.setValue([EMAIL PROTECTED],che.org);
  +   valueTest(info, false);
  +   info.setValue([EMAIL PROTECTED],rg);
  +   valueTest(info, false);
  +info.setValue([EMAIL PROTECTED],org);
  +valueTest(info, false);
  +
  +}
  +
  +/**
  + * Write this test according to parts of RFC, as opposed to the type of 
character
  + * that is being tested.
  + * According to RFC 1738 a user name can be composed of the following :
  + *  *[alpha | digit | $ | - | _ | . | +  | ! | * | ' | ( | 
) | , | % hex hex | ; | ? |  | = ]
  +
  + * @throws ValidatorException
  + */
  +public void testEmailUserName() throws ValidatorException {
  +   ValueBean info = new ValueBean();
  +   info.setValue([EMAIL PROTECTED]);
  +   valueTest(info, true);
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, true);
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, true);
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, true);
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, true);
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, true);
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, true);
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, true);
  +info.setValue(joe'@apache.org);
  +valueTest(info, true);
  +info.setValue(joe(@apache.org);
  +valueTest(info, true);
  +info.setValue(joe)@apache.org);
  +valueTest(info, true);
  +info.setValue(joe,@apache.org);
  +valueTest(info, true);
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, true);
  +info.setValue(joe;@apache.org);
  +valueTest(info, true);
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, true);
  +info.setValue(joe@apache.org);
  +valueTest(info, true);
  +info.setValue([EMAIL PROTECTED]);
  +valueTest(info, true);
  +
  +}
  +
  +
   
  /**
   * Utlity class

cvs commit: jakarta-commons/validator project.xml

2003-08-16 Thread rleland
rleland 2003/08/16 21:26:03

  Modified:validator project.xml
  Log:
  Add package so maven correctly modified package
  in jars MANAFEST file.
  
  Revision  ChangesPath
  1.13  +8 -4  jakarta-commons/validator/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/validator/project.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- project.xml   17 Aug 2003 02:29:45 -  1.12
  +++ project.xml   17 Aug 2003 04:26:03 -  1.13
  @@ -4,21 +4,25 @@
 extend../project.xml/extend
 nameValidator/name
 idcommons-validator/id
  -  currentVersion1.1.0/currentVersion
  +  currentVersion1.1.0-dev/currentVersion
 inceptionYear2002/inceptionYear
 gumpRepositoryIdjakarta/gumpRepositoryId
  +  packageorg.apache.commons.validator.*/package
  +
 shortDescriptionCommons Validator/shortDescription
 logo/images/logo.gif/logo
   
 description
  -Commons Validator component.
  +Commons Validator provides the building blocks for both client side validation
  +and server side data validation. It may be used standalone on with a framework 
like
  +Struts.
 /description
 
 urlhttp://jakarta.apache.org/commons/validator//url
 issueTrackingUrlhttp://nagoya.apache.org/bugzilla//issueTrackingUrl
 siteAddressjakarta.apache.org/siteAddress
 siteDirectory/www/jakarta.apache.org/commons/validator//siteDirectory
  -  
distributionDirectory/www/jakarta.apache.org/builds/jakarta-commons/validator//distributionDirectory
  +  
distributionDirectoryhttp://jakarta.apache.org/site/binindex.cgi/distributionDirectory
   
 developers
   developer
  @@ -87,7 +91,7 @@
   
   dependency
 idcommons-logging/id
  -  version1.0.2/version
  +  version1.0.3/version
   /dependency
   
   dependency
  
  
  

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



cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript validateInteger.js validateFloatRange.js validateFloat.js validateEmail.js validateDate.js validateCreditCard.js validateByte.js

2003-08-15 Thread rleland
rleland 2003/08/15 13:20:40

  Modified:validator/src/javascript/org/apache/commons/validator/javascript
validateInteger.js validateFloatRange.js
validateFloat.js validateEmail.js validateDate.js
validateCreditCard.js validateByte.js
  Log:
  Place CVS version info in file.
  
  Revision  ChangesPath
  1.2   +4 -0  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateInteger.js
  
  Index: validateInteger.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateInteger.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- validateInteger.js18 May 2003 21:34:41 -  1.1
  +++ validateInteger.js15 Aug 2003 20:20:40 -  1.2
  @@ -1,3 +1,7 @@
  +  //$Header$
  +  //$Revision$
  +  //$Date$
  +
   
   function validateInteger(form) {
   var bValid = true;
  
  
  
  1.2   +4 -0  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloatRange.js
  
  Index: validateFloatRange.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloatRange.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- validateFloatRange.js 18 May 2003 21:35:37 -  1.1
  +++ validateFloatRange.js 15 Aug 2003 20:20:40 -  1.2
  @@ -1,3 +1,7 @@
  +  //$Header$
  +  //$Revision$
  +  //$Date$
  +
   
   function validateFloatRange(form) {
   var isValid = true;
  
  
  
  1.3   +4 -0  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloat.js
  
  Index: validateFloat.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloat.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- validateFloat.js  15 Aug 2003 18:30:29 -  1.2
  +++ validateFloat.js  15 Aug 2003 20:20:40 -  1.3
  @@ -1,3 +1,7 @@
  +  //$Header$
  +  //$Revision$
  +  //$Date$
  +
   
   function validateFloat(form) {
   var bValid = true;
  
  
  
  1.2   +4 -0  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateEmail.js
  
  Index: validateEmail.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateEmail.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- validateEmail.js  18 May 2003 21:36:21 -  1.1
  +++ validateEmail.js  15 Aug 2003 20:20:40 -  1.2
  @@ -1,3 +1,7 @@
  +  //$Header$
  +  //$Revision$
  +  //$Date$
  +
   
   function validateEmail(form) {
   var bValid = true;
  
  
  
  1.2   +4 -0  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateDate.js
  
  Index: validateDate.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateDate.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- validateDate.js   18 May 2003 21:36:34 -  1.1
  +++ validateDate.js   15 Aug 2003 20:20:40 -  1.2
  @@ -1,3 +1,7 @@
  +  //$Header$
  +  //$Revision$
  +  //$Date$
  +
   
   function validateDate(form) {
  var bValid = true;
  
  
  
  1.2   +4 -0  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js
  
  Index: validateCreditCard.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- validateCreditCard.js 18 May 2003 21:36:56 -  1.1
  +++ validateCreditCard.js 15 Aug 2003 20:20:40 -  1.2
  @@ -1,3 +1,7 @@
  +  //$Header$
  +  //$Revision$
  +  //$Date$
  +
   
   function validateCreditCard(form) {
   var bValid = true;
  
  
  
  1.2   +4 -0  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateByte.js
  
  Index: validateByte.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateByte.js,v
  retrieving revision 1.1
  retrieving

cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript validateShort.js validateMinLength.js validateMaxLength.js validateMask.js validateIntRange.js

2003-08-15 Thread rleland
rleland 2003/08/15 13:22:03

  Modified:validator/src/javascript/org/apache/commons/validator/javascript
validateShort.js validateMinLength.js
validateMaxLength.js validateMask.js
validateIntRange.js
  Log:
  Place CVS version info in file.
  
  Revision  ChangesPath
  1.2   +4 -0  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateShort.js
  
  Index: validateShort.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateShort.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- validateShort.js  18 May 2003 21:34:41 -  1.1
  +++ validateShort.js  15 Aug 2003 20:22:03 -  1.2
  @@ -1,3 +1,7 @@
  +  //$Header$
  +  //$Revision$
  +  //$Date$
  +
   
   function validateShort(form) {
   var bValid = true;
  
  
  
  1.3   +4 -0  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMinLength.js
  
  Index: validateMinLength.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMinLength.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- validateMinLength.js  25 Jun 2003 02:11:41 -  1.2
  +++ validateMinLength.js  15 Aug 2003 20:22:03 -  1.3
  @@ -1,3 +1,7 @@
  +  //$Header$
  +  //$Revision$
  +  //$Date$
  +
   
   function validateMinLength(form) {
   var isValid = true;
  
  
  
  1.2   +4 -0  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMaxLength.js
  
  Index: validateMaxLength.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMaxLength.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- validateMaxLength.js  18 May 2003 21:35:37 -  1.1
  +++ validateMaxLength.js  15 Aug 2003 20:22:03 -  1.2
  @@ -1,3 +1,7 @@
  +  //$Header$
  +  //$Revision$
  +  //$Date$
  +
   
   function validateMaxLength(form) {
   var isValid = true;
  
  
  
  1.2   +4 -0  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMask.js
  
  Index: validateMask.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMask.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- validateMask.js   18 May 2003 21:36:06 -  1.1
  +++ validateMask.js   15 Aug 2003 20:22:03 -  1.2
  @@ -1,3 +1,7 @@
  +  //$Header$
  +  //$Revision$
  +  //$Date$
  +
   
   function validateMask(form) {
   var isValid = true;
  
  
  
  1.3   +4 -0  
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateIntRange.js
  
  Index: validateIntRange.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateIntRange.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- validateIntRange.js   30 Jul 2003 03:28:55 -  1.2
  +++ validateIntRange.js   15 Aug 2003 20:22:03 -  1.3
  @@ -1,3 +1,7 @@
  +  //$Header$
  +  //$Revision$
  +  //$Date$
  +
   
   function validateIntRange(form) {
   var isValid = true;
  
  
  

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



cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript validateIntRange.js

2003-07-29 Thread rleland
rleland 2003/07/29 20:28:55

  Modified:validator/src/javascript/org/apache/commons/validator/javascript
validateIntRange.js
  Log:
  Bug 21751 report and patch provided by Kurt Post
  Allow intRange validation of select-one and radio fields.
  In Kurt's words:
  In some form combo boxes you might have the combo boxes populated with valid
  choices plus one additional choice with a caption something like  Choose one
  and a value 0f -1.  Then when the user attempts to submit the form, you can
  look for the value of -1 and yell at them if they failed to pick something.
  
  Revision  ChangesPath
  1.2   +13 -5 
jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateIntRange.js
  
  Index: validateIntRange.js
  ===
  RCS file: 
/home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateIntRange.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- validateIntRange.js   18 May 2003 21:35:37 -  1.1
  +++ validateIntRange.js   30 Jul 2003 03:28:55 -  1.2
  @@ -7,13 +7,21 @@
   oRange = new intRange();
   for (x in oRange) {
   var field = form[oRange[x][0]];
  -
  -if ((field.type == 'text' || field.type == 'textarea') 
  -(field.value.length  0)) {
  -
  +var value = '';
  +if (field.type == 'text' || field.type == 'textarea' ||
  +field.type == 'radio' ) {
  +value = field.value;
  +}
  +if (field.type == 'select-one') {
  +var si = field.selectedIndex;
  +if (si = 0) {
  +value = field.options[si].value;
  +}
  +}
  +if (value.length  0) {
   var iMin = parseInt(oRange[x][2](min));
   var iMax = parseInt(oRange[x][2](max));
  -var iValue = parseInt(field.value);
  +var iValue = parseInt(value);
   if (!(iValue = iMin  iValue = iMax)) {
   if (i == 0) {
   focusField = field;
  
  
  

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