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 2010/08/01 22:28:55 UTC

svn commit: r981309 - /wicket/trunk/wicket/src/main/java/org/apache/wicket/Page.java

Author: knopp
Date: Sun Aug  1 20:28:55 2010
New Revision: 981309

URL: http://svn.apache.org/viewvc?rev=981309&view=rev
Log:
fix for the stateless chache flag being set prematurely

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

Modified: wicket/trunk/wicket/src/main/java/org/apache/wicket/Page.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/Page.java?rev=981309&r1=981308&r2=981309&view=diff
==============================================================================
--- wicket/trunk/wicket/src/main/java/org/apache/wicket/Page.java (original)
+++ wicket/trunk/wicket/src/main/java/org/apache/wicket/Page.java Sun Aug  1 20:28:55 2010
@@ -872,6 +872,10 @@ public abstract class Page extends Marku
 
 		// All Pages are born dirty so they get clustered right away
 		dirty(true);
+
+		// this is a bit of a dirty hack, but calling dirty(true) results in isStateless called
+		// which is bound to set the stateless cache to true as there are no components yet
+		stateless = null;
 	}
 
 	/**