You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by kn...@apache.org on 2007/03/26 10:18:29 UTC

svn commit: r522449 - /incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/Component.java

Author: knopp
Date: Mon Mar 26 01:18:25 2007
New Revision: 522449

URL: http://svn.apache.org/viewvc?view=rev&rev=522449
Log:
set attached flag before calling onAttach, so that it is possible to call attach of parent component in onAttach

Modified:
    incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/Component.java

Modified: incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/Component.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/Component.java?view=diff&rev=522449&r1=522448&r2=522449
==============================================================================
--- incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/Component.java (original)
+++ incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/Component.java Mon Mar 26 01:18:25 2007
@@ -39,7 +39,6 @@
 import wicket.markup.WicketTag;
 import wicket.markup.html.IHeaderContributor;
 import wicket.markup.html.internal.HtmlHeaderContainer;
-import wicket.markup.parser.XmlTag;
 import wicket.model.IAssignmentAwareModel;
 import wicket.model.IInheritableModel;
 import wicket.model.IModel;
@@ -2740,6 +2739,7 @@
 		if (!getFlag(FLAG_ATTACHED))
 		{
 			setFlag(FLAG_ATTACHING, true);
+			setFlag(FLAG_ATTACHED, true);
 			onAttach();
 			if (getFlag(FLAG_ATTACHING))
 			{
@@ -2748,7 +2748,6 @@
 						+ getClass().getName()
 						+ " has not called super.onAtach() in the override of onAttach() method");
 			}
-			setFlag(FLAG_ATTACHED, true);
 		}
 
 		attachChildren();