Repository: wicket
Updated Branches:
  refs/heads/wicket-6.x f150a7311 -> 5c688a3e7


WICKET-6219 resusing the fragment string from FragmentResolver


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

Branch: refs/heads/wicket-6.x
Commit: 5c688a3e72082ef556b41e2e60a1511d19f0592b
Parents: f150a73
Author: Pedro Henrique Oliveira dos Santos <[email protected]>
Authored: Fri Aug 19 03:40:56 2016 -0300
Committer: Pedro Henrique Oliveira dos Santos <[email protected]>
Committed: Fri Aug 19 03:40:56 2016 -0300

----------------------------------------------------------------------
 .../wicket/markup/html/panel/FragmentMarkupSourcingStrategy.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/5c688a3e/wicket-core/src/main/java/org/apache/wicket/markup/html/panel/FragmentMarkupSourcingStrategy.java
----------------------------------------------------------------------
diff --git 
a/wicket-core/src/main/java/org/apache/wicket/markup/html/panel/FragmentMarkupSourcingStrategy.java
 
b/wicket-core/src/main/java/org/apache/wicket/markup/html/panel/FragmentMarkupSourcingStrategy.java
index 015cd1f..11bc130 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/markup/html/panel/FragmentMarkupSourcingStrategy.java
+++ 
b/wicket-core/src/main/java/org/apache/wicket/markup/html/panel/FragmentMarkupSourcingStrategy.java
@@ -16,6 +16,8 @@
  */
 package org.apache.wicket.markup.html.panel;
 
+import static org.apache.wicket.markup.resolver.FragmentResolver.FRAGMENT;
+
 import org.apache.wicket.Component;
 import org.apache.wicket.MarkupContainer;
 import org.apache.wicket.markup.ComponentTag;
@@ -125,7 +127,7 @@ public class FragmentMarkupSourcingStrategy extends 
AbstractMarkupSourcingStrate
                }
 
                // Search for the fragment markup
-               IMarkupFragment childMarkup = TagUtils.findTagMarkup(markup, 
markupId, "fragment", 1 );
+               IMarkupFragment childMarkup = TagUtils.findTagMarkup(markup, 
markupId, FRAGMENT, 1 );
                if (childMarkup == null)
                {
                        // There is one more option if the markup provider has 
associated markup

Reply via email to