You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2009/01/31 21:42:13 UTC

svn commit: r739601 - /wicket/trunk/wicket/src/main/java/org/apache/wicket/Component.java

Author: ivaynberg
Date: Sat Jan 31 20:42:13 2009
New Revision: 739601

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

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

Modified: wicket/trunk/wicket/src/main/java/org/apache/wicket/Component.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/Component.java?rev=739601&r1=739600&r2=739601&view=diff
==============================================================================
--- wicket/trunk/wicket/src/main/java/org/apache/wicket/Component.java (original)
+++ wicket/trunk/wicket/src/main/java/org/apache/wicket/Component.java Sat Jan 31 20:42:13 2009
@@ -1040,6 +1040,11 @@
 			setFlag(FLAG_BEFORE_RENDERING_SUPER_CALL_VERIFIED, false);
 
 			getApplication().notifyPreComponentOnBeforeRenderListeners(this);
+
+			// clear the enabled in hierarchy cache as it may change as a result of form processing
+			// or other logic executed in onbeforerender (WICKET-2063)
+			setMetaData(Component.ENABLED_IN_HIERARCHY_CACHE_KEY, null);
+
 			onBeforeRender();
 			getApplication().notifyPostComponentOnBeforeRenderListeners(this);