You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jd...@apache.org on 2009/09/26 09:07:56 UTC
svn commit: r819097 -
/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
Author: jdonnerstag
Date: Sat Sep 26 07:07:55 2009
New Revision: 819097
URL: http://svn.apache.org/viewvc?rev=819097&view=rev
Log:
fixed: need to know if a component has been added to the AjaxRequestTarget
Issue: WICKET-2248
Modified:
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
Modified: wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
URL: http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java?rev=819097&r1=819096&r2=819097&view=diff
==============================================================================
--- wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java (original)
+++ wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java Sat Sep 26 07:07:55 2009
@@ -387,6 +387,17 @@
}
/**
+ * Return true, if the Component has already been added
+ *
+ * @param component
+ * @return true, if already added
+ */
+ public final boolean isAdded(final Component component)
+ {
+ return (null != markupIdToComponent.get(component.getMarkupId()));
+ }
+
+ /**
* Adds javascript that will be evaluated on the client side after components are replaced
*
* @deprecated use appendJavascript(String javascript) instead