haul        02/04/28 12:09:20

  Modified:    src/java/org/apache/cocoon/components/language/markup/xsp
                        XSPFormValidatorHelper.java
  Log:
  return correct value (NOTPRESENT) when no vlidation result is present
  
  Revision  Changes    Path
  1.9       +3 -3      
xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/XSPFormValidatorHelper.java
  
  Index: XSPFormValidatorHelper.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/XSPFormValidatorHelper.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- XSPFormValidatorHelper.java       6 Apr 2002 06:27:39 -0000       1.8
  +++ XSPFormValidatorHelper.java       28 Apr 2002 19:09:20 -0000      1.9
  @@ -71,7 +71,7 @@
    * The <code>ValidatorActionResult</code> object helper
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Christian Haul</a>
  - * @version CVS $Id: XSPFormValidatorHelper.java,v 1.8 2002/04/06 06:27:39 
vgritsenko Exp $
  + * @version CVS $Id: XSPFormValidatorHelper.java,v 1.9 2002/04/28 19:09:20 haul Exp 
$
    */
   public class XSPFormValidatorHelper {
   
  @@ -160,7 +160,7 @@
           if (param_result != null) {
               result = (ValidatorActionResult) param_result.get(name);
           }
  -        return result;
  +        return (result != null? result : ValidatorActionResult.NOTPRESENT);
       }
   
       /**
  @@ -176,7 +176,7 @@
           if (param_result != null) {
               result = (ValidatorActionResult) param_result.get(current_parameter);
           }
  -        return result;
  +        return (result != null? result : ValidatorActionResult.NOTPRESENT);
       }
   
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to