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 2014/01/09 14:03:58 UTC
[12/50] [abbrv] git commit: Improve the javadoc of
Component#onBeforeRender
Improve the javadoc of Component#onBeforeRender
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/dc5fe234
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/dc5fe234
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/dc5fe234
Branch: refs/heads/sandbox/WICKET-4686
Commit: dc5fe23447f2e6583fff43c3320f6c3ffbcf499b
Parents: 5fb0c84
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Tue Dec 17 11:53:12 2013 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Tue Dec 17 11:53:12 2013 +0200
----------------------------------------------------------------------
wicket-core/src/main/java/org/apache/wicket/Component.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/dc5fe234/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 cc1a69c..62f1eba 100644
--- a/wicket-core/src/main/java/org/apache/wicket/Component.java
+++ b/wicket-core/src/main/java/org/apache/wicket/Component.java
@@ -3856,7 +3856,7 @@ public abstract class Component
}
/**
- * Called just before a component is rendered.
+ * Called just before a component is rendered only if the component is visible.
* <p>
* <strong>NOTE</strong>: If you override this, you *must* call super.onBeforeRender() within
* your implementation.
@@ -3864,6 +3864,11 @@ public abstract class Component
* Because this method is responsible for cascading {@link #onBeforeRender()} call to its
* children it is strongly recommended that super call is made at the end of the override.
* </p>
+ *
+ * Changes to the component tree can be made only <strong>before</strong> calling
+ * super.onBeforeRender().
+ *
+ * @see org.apache.wicket.MarkupContainer#addOrReplace(Component...)
*/
protected void onBeforeRender()
{