You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2012/10/18 13:49:29 UTC

[1/2] git commit: WICKET-4589 Closing tag is incorrectly setup as autocomponent

Updated Branches:
  refs/heads/master 8cfcbdc0f -> 600f5dfb1


WICKET-4589 Closing </wicket:container> tag is incorrectly setup as autocomponent


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/600f5dfb
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/600f5dfb
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/600f5dfb

Branch: refs/heads/master
Commit: 600f5dfb15830288e04e5723fd5237e73de4536e
Parents: 45ba90c
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Thu Oct 18 13:46:16 2012 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Thu Oct 18 13:46:16 2012 +0200

----------------------------------------------------------------------
 .../markup/parser/filter/WicketTagIdentifier.java  |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/600f5dfb/wicket-core/src/main/java/org/apache/wicket/markup/parser/filter/WicketTagIdentifier.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/parser/filter/WicketTagIdentifier.java b/wicket-core/src/main/java/org/apache/wicket/markup/parser/filter/WicketTagIdentifier.java
index 00f0fb9..4b387f7 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/parser/filter/WicketTagIdentifier.java
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/parser/filter/WicketTagIdentifier.java
@@ -85,8 +85,12 @@ public final class WicketTagIdentifier extends AbstractMarkupFilter
 			{
 				// Make it a Wicket component. Otherwise it would be RawMarkup
 				tag.setId(namespace + "_" + tag.getName());
-				tag.setAutoComponentTag(true);
 				tag.setModified(true);
+
+				if (tag.isClose() == false)
+				{
+					tag.setAutoComponentTag(true);
+				}
 			}
 
 			// If the tag is not a well-known wicket namespace tag