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/16 17:09:10 UTC

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

Author: ivaynberg
Date: Fri Jan 16 08:09:10 2009
New Revision: 735039

URL: http://svn.apache.org/viewvc?rev=735039&view=rev
Log:
property detach behaviors that come from componenttags

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=735039&r1=735038&r2=735039&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 Fri Jan 16 08:09:10 2009
@@ -3945,7 +3945,11 @@
 				while (tagBehaviors.hasNext())
 				{
 					final IBehavior behavior = tagBehaviors.next();
-					behavior.onComponentTag(this, tag);
+					if (behavior.isEnabled(this))
+					{
+						behavior.onComponentTag(this, tag);
+						behavior.detach(this);
+					}
 				}
 			}