Revision: 852
          http://stripes.svn.sourceforge.net/stripes/?rev=852&view=rev
Author:   javelotinfo
Date:     2008-02-11 12:22:06 -0800 (Mon, 11 Feb 2008)

Log Message:
-----------
Removed comments that refer to old Validatable interface

Modified Paths:
--------------
    trunk/stripes/src/net/sourceforge/stripes/controller/DispatcherHelper.java

Modified: 
trunk/stripes/src/net/sourceforge/stripes/controller/DispatcherHelper.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/controller/DispatcherHelper.java  
2008-02-08 22:07:29 UTC (rev 851)
+++ trunk/stripes/src/net/sourceforge/stripes/controller/DispatcherHelper.java  
2008-02-11 20:22:06 UTC (rev 852)
@@ -219,11 +219,10 @@
         final boolean doValidate = doBind && 
handler.getAnnotation(DontValidate.class) == null;
         Configuration config = StripesFilter.getConfiguration();
 
-        // Run the bean's validate() method if the following conditions are 
met:
+        // Run the bean's methods annotated with @ValidateMethod if the 
following conditions are met:
         //   l. This event is not marked to bypass binding 
         //   2. This event is not marked to bypass validation (doValidate == 
true)
-        //   3. The bean is an instance of Validatable
-        //   4. We have no errors so far OR alwaysInvokeValidate is true
+        //   3. We have no errors so far OR alwaysInvokeValidate is true
         if (doValidate) {
 
             ctx.setLifecycleStage(LifecycleStage.CustomValidation);
@@ -232,7 +231,7 @@
             return ctx.wrap( new Interceptor() {
                 @SuppressWarnings("deprecation")
                                public Resolution intercept(ExecutionContext 
context) throws Exception {
-                    // Run any of the new style validation methods
+                    // Run any of the annotated validation methods
                     Method[] validations = 
findCustomValidationMethods(bean.getClass());
                     for (Method validation : validations) {
                         ValidationMethod ann = 
validation.getAnnotation(ValidationMethod.class);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to