Author: jdonnerstag
Date: Sun Dec 12 10:47:19 2010
New Revision: 1044789

URL: http://svn.apache.org/viewvc?rev=1044789&view=rev
Log:
Exception when calling setOutputMarkupId/PlaceholderTag on wicket:container
Issue: WICKET-3237

Modified:
    
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Component.java

Modified: 
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Component.java
URL: 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Component.java?rev=1044789&r1=1044788&r2=1044789&view=diff
==============================================================================
--- 
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Component.java
 (original)
+++ 
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Component.java
 Sun Dec 12 10:47:19 2010
@@ -4217,7 +4217,7 @@ public abstract class Component implemen
                final boolean stripWicketTags = ajaxRequest ||
                        
Application.get().getMarkupSettings().getStripWicketTags();
 
-               if (tag instanceof WicketTag)
+               if ((tag instanceof WicketTag) && !tag.isClose())
                {
                        if (getFlag(FLAG_OUTPUT_MARKUP_ID))
                        {
@@ -4233,7 +4233,7 @@ public abstract class Component implemen
                                                + "Component id: %s, component 
tag: %s.", getId(), tag.getName()));
                        }
                }
-               
+
                if (!(tag instanceof WicketTag) || !stripWicketTags)
                {
                        // Apply behavior modifiers


Reply via email to