Commits

unkyaku  committed 7e6f1e4

Add/update javadocs.

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@220e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits fad517c

Comments (0)

Files changed (4)

File src/java/com/opensymphony/xwork/ModelDriven.java

 
 
 /**
- * ModelDriven Actions provide a model object to be pushed onto the ValueStack instead of the Action itself,
- * allowing a FormBean type approach like Struts.
+ * ModelDriven Actions provide a model object to be pushed onto the ValueStack
+ * in addition to the Action itself, allowing a FormBean type approach like Struts.
+ * 
  * @author Jason Carreira
  * Created Apr 8, 2003 6:22:42 PM
  */

File src/java/com/opensymphony/xwork/interceptor/ModelDrivenInterceptor.java

 
 
 /**
+ * Watches for ModelDriven Actions and adds the model from the Action on to the
+ * value stack.
+ * <p>
+ * <b>Note:</b>  The ModelDrivenInterceptor must come before the both
+ * {@link StaticParametersInterceptor} and {@link ParametersInterceptor} if you
+ * want the parameters to be applied to the model.
+ *
  * @author $Author$
  * @version $Revision$
  */
     }
 
     protected void before(ActionInvocation invocation) throws Exception {
-        Action action = invocation.getProxy().getAction();
+        Action action = invocation.getAction();
 
         if (action instanceof ModelDriven) {
             ModelDriven modelDriven = (ModelDriven) action;

File src/java/com/opensymphony/xwork/interceptor/StaticParametersInterceptor.java

 
 
 /**
- *
+ * Populates the Action with the static parameters defined in the Action
+ * configuration by treating the Action as a bean.  If the  Action is 
+ * {@link Parameterizable}, a map of the static parameters will be also be
+ * passed directly to the Action.
+ * <p>
+ * Parameters are defined with &lt;param&gt; elements within the Action
+ * configuration.
  *
  * @author $Author$
  * @version $Revision$

File src/java/com/opensymphony/xwork/validator/validators/VisitorFieldValidator.java

 
 
 /**
- * VisitorFieldValidator
+ * The VisitorFieldValidator allows you to forward validation to object
+ * properties of your action using the object's own validation files.  This
+ * allows you to use the ModelDriven development pattern and manage your
+ * validations for your models in one place, where they belong, next to your
+ * model classes.  The VisitorFieldValidator can handle either simple Object
+ * properties, Collections of Objects, or Arrays.
+ *
  * @author Jason Carreira
  * Created Aug 2, 2003 10:27:48 PM
  */
         }
 
         /**
- * Translates a simple field name into a full field name in Ognl syntax
- * @param fieldName
- * @return
- */
+         * Translates a simple field name into a full field name in Ognl syntax
+         * @param fieldName
+         * @return
+         */
         public String getFullFieldName(String fieldName) {
             return field + "." + fieldName;
         }