You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jc...@apache.org on 2007/09/10 14:14:04 UTC

svn commit: r574216 - in /wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form: Form.java FormComponent.java

Author: jcompagner
Date: Mon Sep 10 05:14:03 2007
New Revision: 574216

URL: http://svn.apache.org/viewvc?rev=574216&view=rev
Log:
updated docs

Modified:
    wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java
    wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java

Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java?rev=574216&r1=574215&r2=574216&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java Mon Sep 10 05:14:03 2007
@@ -1595,7 +1595,11 @@
 
 	/**
 	 * Update the model of all form components using the fields that were sent with the current
-	 * request.
+	 * request. This method only updates models when the Form.validate() is called first that takes
+	 * care of the conversion for the FormComponents.
+	 * 
+	 * Normally this method will not be called when a validation error occurs in one of the form
+	 * components.
 	 * 
 	 * @see org.apache.wicket.markup.html.form.FormComponent#updateModel()
 	 */

Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java?rev=574216&r1=574215&r2=574216&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java Mon Sep 10 05:14:03 2007
@@ -974,8 +974,11 @@
 	}
 
 	/**
-	 * Updates this components' model from the request, it expect that the object is already
-	 * converted through the convert() call. By default it just does this:
+	 * Updates this components model from the request, it expects that the object is already
+	 * converted through the convertInput() call that is called by the validate() method when a form
+	 * is being processed.
+	 * 
+	 * By default it just does this:
 	 * 
 	 * <pre>
 	 * setModelObject(getConvertedInput());
@@ -1002,8 +1005,8 @@
 
 	/**
 	 * Performs full validation of the form component, which consists of calling validateRequired(),
-	 * validateTypeConversion(), and validateValidators(). This method should only be used if the
-	 * form component needs to be fully validated outside the form process.
+	 * convertInput(), and validateValidators(). This method should only be used if the form
+	 * component needs to be fully validated outside the form process.
 	 */
 	public final void validate()
 	{