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 2013/02/27 17:03:00 UTC
[2/2] git commit: Improve HtmlProblemFinder to use the correct wicket
namespace
Updated Branches:
refs/heads/master 114068e9d -> ce0f1e95a
Improve HtmlProblemFinder to use the correct wicket namespace
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/ce0f1e95
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/ce0f1e95
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/ce0f1e95
Branch: refs/heads/master
Commit: ce0f1e95a8edabbe582ace67a52b2344d5b1dde7
Parents: 9d2376d
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Wed Feb 27 18:02:31 2013 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Wed Feb 27 18:02:31 2013 +0200
----------------------------------------------------------------------
.../markup/parser/filter/HtmlProblemFinder.java | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/ce0f1e95/wicket-core/src/main/java/org/apache/wicket/markup/parser/filter/HtmlProblemFinder.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/parser/filter/HtmlProblemFinder.java b/wicket-core/src/main/java/org/apache/wicket/markup/parser/filter/HtmlProblemFinder.java
index 74c2133..9d79e1f 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/parser/filter/HtmlProblemFinder.java
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/parser/filter/HtmlProblemFinder.java
@@ -100,10 +100,12 @@ public final class HtmlProblemFinder extends AbstractMarkupFilter
if (key != null)
{
key = key.toLowerCase();
- if (key.startsWith("wicket."))
+ String namespaceDot = getWicketNamespace() + '.';
+ if (key.startsWith(namespaceDot))
{
escalateWarning(
- "You probably want 'wicket:xxx' rather than 'wicket.xxx'. Location: ", tag);
+ String.format("You probably want '%s:xxx' rather than '%s.xxx'. Location: ", namespaceDot, namespaceDot),
+ tag);
}
}
}