Repository: wicket
Updated Branches:
  refs/heads/master befa7f0f7 -> 247ef2996


WICKET-6335 call factory methods from #onInitialize()

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

Branch: refs/heads/master
Commit: 247ef29967c2d50ccf0925d28edf641610f5c30c
Parents: befa7f0
Author: Sven Meier <svenme...@apache.org>
Authored: Sun Mar 12 19:38:00 2017 +0100
Committer: Sven Meier <svenme...@apache.org>
Committed: Sun Mar 12 19:38:00 2017 +0100

----------------------------------------------------------------------
 .../wicket/extensions/markup/html/repeater/tree/Node.java   | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/247ef299/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/tree/Node.java
----------------------------------------------------------------------
diff --git 
a/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/tree/Node.java
 
b/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/tree/Node.java
index e48a34c..1d9f957 100644
--- 
a/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/tree/Node.java
+++ 
b/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/tree/Node.java
@@ -72,12 +72,19 @@ public abstract class Node<T> extends Panel
                super(id, model);
 
                this.tree = tree;
+       }
+       
+       @Override
+       protected void onInitialize()
+       {
+               super.onInitialize();
+               
 
                MarkupContainer junction = createJunctionComponent("junction");
                junction.add(new StyleBehavior());
                add(junction);
 
-               Component content = createContent(CONTENT_ID, model);
+               Component content = createContent(CONTENT_ID, getModel());
                if (!content.getId().equals(CONTENT_ID))
                {
                        throw new IllegalArgumentException(

Reply via email to