Author: lukaszlenart
Date: Wed May 22 11:26:13 2013
New Revision: 1485153

URL: http://svn.apache.org/r1485153
Log:
WW-4071 Adds some comments about the supported *Aware interfaces

Modified:
    
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/DefaultWorkflowInterceptor.java

Modified: 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/DefaultWorkflowInterceptor.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/DefaultWorkflowInterceptor.java?rev=1485153&r1=1485152&r2=1485153&view=diff
==============================================================================
--- 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/DefaultWorkflowInterceptor.java
 (original)
+++ 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/DefaultWorkflowInterceptor.java
 Wed May 22 11:26:13 2013
@@ -30,7 +30,7 @@ import java.lang.reflect.Method;
  * An interceptor that makes sure there are not validation errors before 
allowing the interceptor chain to continue.
  * <b>This interceptor does not perform any validation</b>.
  * <p/>
- * <p/>This interceptor does nothing if the name of the method being invoked 
is specified in the <b>excludeMethods</b>
+ * This interceptor does nothing if the name of the method being invoked is 
specified in the <b>excludeMethods</b>
  * parameter. <b>excludeMethods</b> accepts a comma-delimited list of method 
names. For example, requests to
  * <b>foo!input.action</b> and <b>foo!back.action</b> will be skipped by this 
interceptor if you set the
  * <b>excludeMethods</b> parameter to "input, back".
@@ -42,33 +42,36 @@ import java.lang.reflect.Method;
  * all methods for both parameters.
  * See {@link MethodFilterInterceptor} for more info.
  * <p/>
+ * This interceptor also supports the following interfaces which can 
implemented by actions:
+ * <ul>
+ *     <li>ValidationAware - implemented by ActionSupport class</li>
+ *     <li>ValidationWorkflowAware - allows changing result name 
programmatically</li>
+ *     <li>ValidationErrorAware - notifies action about errors and also allow 
change result name</li>
+ * </ul>
+ *
+ * You can also use InputConfig annotation to change result name returned when 
validation errors occurred.
+ *
  * <!-- END SNIPPET: description -->
- * <p/>
- * <p/> <u>Interceptor parameters:</u>
- * <p/>
+ *
+ * <u>Interceptor parameters:</u>
+ *
  * <!-- START SNIPPET: parameters -->
- * <p/>
  * <ul>
- * <p/>
  * <li>inputResultName - Default to "input". Determine the result name to be 
returned when
  * an action / field error is found.</li>
- * <p/>
  * </ul>
- * <p/>
  * <!-- END SNIPPET: parameters -->
- * <p/>
- * <p/> <u>Extending the interceptor:</u>
- * <p/>
- * <p/>
- * <p/>
+ *
+ * <u>Extending the interceptor:</u>
+ *
  * <!-- START SNIPPET: extending -->
- * <p/>
+ *
  * There are no known extension points for this interceptor.
- * <p/>
+ *
  * <!-- END SNIPPET: extending -->
- * <p/>
- * <p/> <u>Example code:</u>
- * <p/>
+ *
+ * <u>Example code:</u>
+ *
  * <pre>
  * <!-- START SNIPPET: example -->
  *


Reply via email to