You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jb...@apache.org on 2007/06/22 17:54:36 UTC

svn commit: r549856 - /incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/DropDownChoice.java

Author: jbq
Date: Fri Jun 22 08:54:36 2007
New Revision: 549856

URL: http://svn.apache.org/viewvc?view=rev&rev=549856
Log:
Improve Javadoc for wantOnSelectionChangedNotifications()

Modified:
    incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/DropDownChoice.java

Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/DropDownChoice.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/DropDownChoice.java?view=diff&rev=549856&r1=549855&r2=549856
==============================================================================
--- incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/DropDownChoice.java (original)
+++ incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/DropDownChoice.java Fri Jun 22 08:54:36 2007
@@ -18,6 +18,7 @@
 
 import java.util.List;
 
+import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
 import org.apache.wicket.markup.ComponentTag;
 import org.apache.wicket.model.IModel;
 
@@ -206,11 +207,14 @@
 	}
 
 	/**
-	 * Whether this component's onSelectionChanged event handler should called
-	 * using javascript if the selection changes. If true, a roundtrip will be
-	 * generated with each selection change, resulting in the model being
-	 * updated (of just this component) and onSelectionChanged being called.
-	 * This method returns false by default.
+	 * Whether this component's onSelectionChanged event handler should be
+	 * called using javascript <tt>window.location</tt> if the selection
+	 * changes. If true, a roundtrip will be generated with each selection
+	 * change, resulting in the model being updated (of just this component) and
+	 * onSelectionChanged being called. This method returns false by default. If
+	 * you wish to use Ajax instead, let
+	 * {@link #wantOnSelectionChangedNotifications()} return false and add an
+	 * {@link AjaxFormComponentUpdatingBehavior} to the component.
 	 * 
 	 * @return True if this component's onSelectionChanged event handler should
 	 *         called using javascript if the selection changes