Author: jdonnerstag Date: Mon Jul 9 20:38:59 2007 New Revision: 554813 URL: http://svn.apache.org/viewvc?view=rev&rev=554813 Log: synthetic close tag not working properly with "stripWicketTags" == true
Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java?view=diff&rev=554813&r1=554812&r2=554813 ============================================================================== --- incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java (original) +++ incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java Mon Jul 9 20:38:59 2007 @@ -2129,8 +2129,12 @@ // rendered. if (getRenderBodyOnly() == false) { - // Close the manually opened panel tag. - getResponse().write(openTag.syntheticCloseTagString()); + final boolean stripWicketTags = Application.get().getMarkupSettings().getStripWicketTags(); + if (!(openTag instanceof WicketTag) || !stripWicketTags) + { + // Close the manually opened panel tag. + getResponse().write(openTag.syntheticCloseTagString()); + } } } }