You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jr...@apache.org on 2011/02/20 05:13:55 UTC
svn commit: r1072489 - in
/wicket/trunk/wicket-core/src/main/java/org/apache/wicket: Component.java
behavior/Behavior.java
Author: jrthomerson
Date: Sun Feb 20 04:13:55 2011
New Revision: 1072489
URL: http://svn.apache.org/viewvc?rev=1072489&view=rev
Log:
improvement on WICKET-3457
Modified:
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/Component.java
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/behavior/Behavior.java
Modified: wicket/trunk/wicket-core/src/main/java/org/apache/wicket/Component.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-core/src/main/java/org/apache/wicket/Component.java?rev=1072489&r1=1072488&r2=1072489&view=diff
==============================================================================
--- wicket/trunk/wicket-core/src/main/java/org/apache/wicket/Component.java (original)
+++ wicket/trunk/wicket-core/src/main/java/org/apache/wicket/Component.java Sun Feb 20 04:13:55 2011
@@ -1142,19 +1142,12 @@ public abstract class Component
{
clearEnabledInHierarchyCache();
clearVisibleInHierarchyCache();
- for (Behavior behavior : getBehaviors())
- {
- if (isBehaviorAccepted(behavior))
- {
- behavior.preConfigure(this);
- }
- }
onConfigure();
for (Behavior behavior : getBehaviors())
{
if (isBehaviorAccepted(behavior))
{
- behavior.postConfigure(this);
+ behavior.onConfigure(this);
}
}
setRequestFlag(RFLAG_CONFIGURED, true);
Modified: wicket/trunk/wicket-core/src/main/java/org/apache/wicket/behavior/Behavior.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-core/src/main/java/org/apache/wicket/behavior/Behavior.java?rev=1072489&r1=1072488&r2=1072489&view=diff
==============================================================================
--- wicket/trunk/wicket-core/src/main/java/org/apache/wicket/behavior/Behavior.java (original)
+++ wicket/trunk/wicket-core/src/main/java/org/apache/wicket/behavior/Behavior.java Sun Feb 20 04:13:55 2011
@@ -194,18 +194,6 @@ public abstract class Behavior implement
}
/**
- * Called immediately before the onConfigure method in a component. Since this is before the
- * rendering cycle has begun, the behavior can modify the configuration of the component (i.e.
- * setVisible(false))
- *
- * @param component
- * the component being configured
- */
- public void preConfigure(Component component)
- {
- }
-
- /**
* Called immediately after the onConfigure method in a component. Since this is before the
* rendering cycle has begun, the behavior can modify the configuration of the component (i.e.
* setVisible(false))
@@ -213,7 +201,7 @@ public abstract class Behavior implement
* @param component
* the component being configured
*/
- public void postConfigure(Component component)
+ public void onConfigure(Component component)
{
}