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/06/08 04:28:43 UTC

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

Author: ehillenius
Date: Thu Jun  7 19:28:43 2007
New Revision: 545372

URL: http://svn.apache.org/viewvc?view=rev&rev=545372
Log:
remove debug meta data at the end of requests

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

Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java?view=diff&rev=545372&r1=545371&r2=545372
==============================================================================
--- incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java (original)
+++ incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java Thu Jun  7 19:28:43 2007
@@ -934,6 +934,20 @@
 		// Check rendering if it happened fully
 		checkRendering(this);
 
+		// clean up debug meta data if component check is on
+		if (Application.get().getDebugSettings().getComponentUseCheck())
+		{
+			visitChildren(new IVisitor()
+			{
+				public Object component(Component component)
+				{
+					component.setMetaData(Component.CONSTRUCTED_AT_KEY, null);
+					component.setMetaData(Component.ADDED_AT_KEY, null);
+					return CONTINUE_TRAVERSAL;
+				}
+			});
+		}
+
 		if (!isPageStateless())
 		{
 			// trigger creation of the actual session in case it was deferred