You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2009/12/17 02:17:35 UTC

svn commit: r891505 - /wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java

Author: ivaynberg
Date: Thu Dec 17 01:17:34 2009
New Revision: 891505

URL: http://svn.apache.org/viewvc?rev=891505&view=rev
Log:
cleanup

Modified:
    wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java

Modified: wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java?rev=891505&r1=891504&r2=891505&view=diff
==============================================================================
--- wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java (original)
+++ wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java Thu Dec 17 01:17:34 2009
@@ -378,8 +378,17 @@
 	/** True if the form has enctype of multipart/form-data */
 	private short multiPart = 0;
 
-	private static short MULTIPART_HARD = 0x01;
-	private static short MULTIPART_HINT = 0x02;
+	/**
+	 * A user has explicitly called {@link #setMultiPart(boolean)} with value {@code true}forcing it
+	 * to be true
+	 */
+	private static final short MULTIPART_HARD = 0x01;
+
+	/**
+	 * The form has discovered a multipart component before rendering and is marking itself as
+	 * multipart until next render
+	 */
+	private static final short MULTIPART_HINT = 0x02;
 
 	/**
 	 * Constructs a form with no validation.