Author: ivaynberg
Date: Mon Jul 12 23:27:18 2010
New Revision: 963525
URL: http://svn.apache.org/viewvc?rev=963525&view=rev
Log:
WICKET-2943 introduce Component#onInitialize()
Modified:
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Page.java
Modified:
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Page.java
URL:
http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Page.java?rev=963525&r1=963524&r2=963525&view=diff
==============================================================================
---
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Page.java
(original)
+++
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Page.java
Mon Jul 12 23:27:18 2010
@@ -417,8 +417,7 @@ public abstract class Page extends Marku
* THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL.
*
* This method is called when a component was rendered standalone. If
it is a <code>
- * MarkupContainer</code>
- * then the rendering for that container is checked.
+ * MarkupContainer</code> then the rendering for that container is
checked.
*
* @param component
*
@@ -1158,16 +1157,16 @@ public abstract class Page extends Marku
if (border != null &&
!border.getBodyContainer().isVisibleInHierarchy())
{
// Suppose:
- //
+ //
// <div wicket:id="border"><div
wicket:id="label"></div> suppose
// border->label and border's
body is hidden.
- //
+ //
// The label is added to border
not to its hidden body so as far as wicket
// is concerned label is
visible in hierarchy, but when rendering label wont
// be rendered because in the
markup it is inside the border's hidden body.
// Thus component use check
will fail even though it shouldnt - make sure it
// doesnt.
- //
+ //
// TODO it would be more
accurate to determine that this component is inside
// the border parent's markup
not the border's itself
@@ -1547,6 +1546,17 @@ public abstract class Page extends Marku
}
/**
+ * This method does nothing, it is here to prevent subclasses from
overriding it since this
+ * callback is never called on the {...@link Page}
+ *
+ * @see org.apache.wicket.Component#onInitialize()
+ */
+ @Override
+ protected final void onInitialize()
+ {
+ }
+
+ /**
* Renders this container to the given response object.
*
* @param markupStream