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/04/21 10:11:01 UTC

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

Author: ehillenius
Date: Sat Apr 21 01:11:01 2007
New Revision: 530992

URL: http://svn.apache.org/viewvc?view=rev&rev=530992
Log:
hard refresh by redirecting to bookmarkable page when the locale changes

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=530992&r1=530991&r2=530992
==============================================================================
--- 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 Sat Apr 21 01:11:01 2007
@@ -104,7 +104,8 @@
 					.range(0, 100)));
 			add(new CheckBox("booleanProperty"));
 			add(new Multiply("multiply"));
-			add(new Label("multiplyLabel", new PropertyModel(getModel(), "multiply")).setComponentBorder(new BeforeAndAfterBorder()));
+			add(new Label("multiplyLabel", new PropertyModel(getModel(), "multiply"))
+					.setComponentBorder(new BeforeAndAfterBorder()));
 			RadioChoice rc = new RadioChoice("numberRadioChoice", NUMBERS).setSuffix("");
 			rc.setLabel(new Model("number"));
 			rc.setRequired(true);
@@ -276,8 +277,10 @@
 			// model allready calls FormInput.setLocale when the model is
 			// updated
 
-			// force re-render
-			getForm().modelChanged();
+			// force re-render by setting the page to render to the bookmarkable
+			// instance, so that the page will be rendered from scratch,
+			// re-evaluating the input patterns etc
+			setResponsePage(FormInput.class);
 		}
 
 		/**