Author: ivaynberg Date: Thu Dec 17 01:17:09 2009 New Revision: 891504 URL: http://svn.apache.org/viewvc?rev=891504&view=rev Log: cleanup
Modified: wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java Modified: wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java URL: http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java?rev=891504&r1=891503&r2=891504&view=diff ============================================================================== --- wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java (original) +++ wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java Thu Dec 17 01:17:09 2009 @@ -387,8 +387,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.