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); } }