You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by eh...@apache.org on 2007/05/10 17:12:24 UTC

svn commit: r536884 - /incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java

Author: ehillenius
Date: Thu May 10 08:12:23 2007
New Revision: 536884

URL: http://svn.apache.org/viewvc?view=rev&rev=536884
Log:
improvement for reset button

Modified:
    incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java

Modified: incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java?view=diff&rev=536884&r1=536883&r2=536884
==============================================================================
--- incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java (original)
+++ incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java Thu May 10 08:12:23 2007
@@ -188,11 +188,10 @@
 			{
 				public void onSubmit()
 				{
-					// just call modelChanged so that any invalid input is
-					// cleared.
-					InputForm.this.modelChanged();
+					// just set a new instance of the page
+					setResponsePage(FormInput.class);
 				}
-			});
+			}.setDefaultFormProcessing(false));
 		}
 
 		/**