Repository: wicket Updated Branches: refs/heads/WICKET-5677 9a6ba692a -> 70b7327d2
added javadoc Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/70b7327d Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/70b7327d Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/70b7327d Branch: refs/heads/WICKET-5677 Commit: 70b7327d2ce142707171cd31a1b612cffaa7a066 Parents: 9a6ba69 Author: Carl-Eric Menzel <[email protected]> Authored: Mon Aug 18 11:27:24 2014 +0200 Committer: Carl-Eric Menzel <[email protected]> Committed: Mon Aug 18 11:27:24 2014 +0200 ---------------------------------------------------------------------- .../src/main/java/org/apache/wicket/Component.java | 11 +++++++++++ 1 file changed, 11 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/70b7327d/wicket-core/src/main/java/org/apache/wicket/Component.java ---------------------------------------------------------------------- diff --git a/wicket-core/src/main/java/org/apache/wicket/Component.java b/wicket-core/src/main/java/org/apache/wicket/Component.java index 932a954..0eb62c3 100644 --- a/wicket-core/src/main/java/org/apache/wicket/Component.java +++ b/wicket-core/src/main/java/org/apache/wicket/Component.java @@ -4500,6 +4500,17 @@ public abstract class Component } } + /** + * This method is called whenever a component is added to the component tree connected to the page, + * to allow it to initialize things that depend on other components in the page. This is similar + * to {@link #onInitialize()}. However, onInitialize is only ever called once, the first time the + * component is added. It is not called when a component is removed and then added again. + * + * This method, however, is called every time the component is added to the page's tree. It is + * never called before onInitialize(). It is thus the opposite of onRemove(). + * + * Subclasses that override this must call super.onAddToPage(). + */ protected void onAddToPage() { setRequestFlag(RFLAG_ONADD_SUPER_CALL_VERIFIED, true);
