You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by kn...@apache.org on 2007/09/01 23:50:59 UTC

svn commit: r571882 - /wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java

Author: knopp
Date: Sat Sep  1 14:50:58 2007
New Revision: 571882

URL: http://svn.apache.org/viewvc?rev=571882&view=rev
Log:
WICKET-707

Modified:
    wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java

Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java?rev=571882&r1=571881&r2=571882&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java Sat Sep  1 14:50:58 2007
@@ -828,8 +828,11 @@
 		// Make sure it is really empty
 		renderedComponents = null;
 
-		// Reset it to stateless so that it can be tested again
-		stateless = null;
+		// if the page is stateless, reset the flag so that it is tested again
+		if (Boolean.TRUE.equals(stateless))
+		{
+			stateless = null;
+		}
 
 		// Set form component values from cookies
 		setFormComponentValuesFromCookies();