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:12:36 UTC
svn commit: r735041 -
/wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java
Author: ivaynberg
Date: Fri Jan 16 08:12:35 2009
New Revision: 735041
URL: http://svn.apache.org/viewvc?rev=735041&view=rev
Log:
property detach behaviors that come from ComponentTag
Modified:
wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java
Modified: wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java
URL: http://svn.apache.org/viewvc/wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java?rev=735041&r1=735040&r2=735041&view=diff
==============================================================================
--- wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java (original)
+++ wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java Fri Jan 16 08:12:35 2009
@@ -3836,7 +3836,11 @@
while (tagBehaviors.hasNext())
{
final IBehavior behavior = (IBehavior)tagBehaviors.next();
- behavior.onComponentTag(this, tag);
+ if (behavior.isEnabled(this))
+ {
+ behavior.onComponentTag(this, tag);
+ }
+ behavior.detach(this);
}
}