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/12/17 17:28:54 UTC

svn commit: r604916 - /wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/tree/AbstractTree.java

Author: knopp
Date: Mon Dec 17 08:28:53 2007
New Revision: 604916

URL: http://svn.apache.org/viewvc?rev=604916&view=rev
Log:
Allow to intercept adding tree components to AjaxRequestTarget

Modified:
    wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/tree/AbstractTree.java

Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/tree/AbstractTree.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/tree/AbstractTree.java?rev=604916&r1=604915&r2=604916&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/tree/AbstractTree.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/tree/AbstractTree.java Mon Dec 17 08:28:53 2007
@@ -870,6 +870,17 @@
 	}
 
 	/**
+	 * Allows to intercept adding dirty components to AjaxRequestTarget.
+	 * 
+	 * @param target
+	 * @param component
+	 */
+	protected void addComponent(AjaxRequestTarget target, Component component)
+	{
+		target.addComponent(component);
+	}
+
+	/**
 	 * Updates the changed portions of the tree using given AjaxRequestTarget. Call this method if
 	 * you modified the tree model during an ajax request target and you want to partially update
 	 * the component on page. Make sure that the tree model has fired the proper listener functions.
@@ -893,7 +904,7 @@
 		if (dirtyAll)
 		{
 			// render entire tree component
-			target.addComponent(this);
+			addComponent(target, this);
 		}
 		else
 		{
@@ -974,7 +985,7 @@
 				}
 
 				// add the component to target
-				target.addComponent(item);
+				addComponent(target, item);
 			}
 
 			// clear dirty flags