Author: jbq
Date: Wed Apr 18 06:12:30 2007
New Revision: 530009

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

Same as WICKET-458

Modified:
    
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/ListMultipleChoice.java

Modified: 
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/ListMultipleChoice.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/ListMultipleChoice.java?view=diff&rev=530009&r1=530008&r2=530009
==============================================================================
--- 
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/ListMultipleChoice.java
 (original)
+++ 
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/ListMultipleChoice.java
 Wed Apr 18 06:12:30 2007
@@ -25,6 +25,7 @@
 import org.apache.wicket.WicketRuntimeException;
 import org.apache.wicket.markup.ComponentTag;
 import org.apache.wicket.model.IModel;
+import org.apache.wicket.model.Model;
 import org.apache.wicket.util.convert.ConversionException;
 import org.apache.wicket.util.string.AppendingStringBuffer;
 import org.apache.wicket.util.string.Strings;
@@ -277,7 +278,15 @@
        }
 
        /**
+        * If the model object exists, it is assumed to be a Collection, and it 
is
+        * modified in-place. Then [EMAIL PROTECTED] Model#setObject(Object)} 
is called with
+        * the same instance: it allows the Model to be notified of changes even
+        * when [EMAIL PROTECTED] Model#getObject()} returns a different [EMAIL 
PROTECTED] Collection} at
+        * every invocation.
+        * 
         * @see FormComponent#updateModel()
+        * @throws UnsupportedOperationException
+        *             if the model object Collection cannot be modified
         */
        public void updateModel()
        {


Reply via email to