Author: ivaynberg
Date: Thu Dec 14 09:26:46 2006
New Revision: 487271

URL: http://svn.apache.org/viewvc?view=rev&rev=487271
Log:
javadoc tweak

Modified:
    
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/list/ListView.java

Modified: 
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/list/ListView.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/list/ListView.java?view=diff&rev=487271&r1=487270&r2=487271
==============================================================================
--- 
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/list/ListView.java
 (original)
+++ 
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/list/ListView.java
 Thu Dec 14 09:26:46 2006
@@ -35,6 +35,12 @@
  * collection types, for repeaters that might work better with non-list or
  * database-driven collections see the wicket.markup.repeater package.
  * 
+ * Also notice that in a list the item's uniqueness/primary key/id is 
identified
+ * as its index in the list. If this is not the case you should either override
+ * [EMAIL PROTECTED] #getListItemModel(IModel, int)} to return a model that 
will work with
+ * the item's true primary key, or use a different repeater that does not rely
+ * on the list index.
+ * 
  * 
  * A ListView holds ListItem children. Items can be re-ordered and deleted,
  * either one at a time or many at a time.
@@ -42,10 +48,10 @@
  * Example:
  * 
  * <pre>
- *    &lt;tbody&gt;
- *      &lt;tr wicket:id=&quot;rows&quot; class=&quot;even&quot;&gt;
- *      &lt;td&gt;&lt;span wicket:id=&quot;id&quot;&gt;Test 
ID&lt;/span&gt;&lt;/td&gt;
- *    ...    
+ *     &lt;tbody&gt;
+ *       &lt;tr wicket:id=&quot;rows&quot; class=&quot;even&quot;&gt;
+ *       &lt;td&gt;&lt;span wicket:id=&quot;id&quot;&gt;Test 
ID&lt;/span&gt;&lt;/td&gt;
+ *     ...    
  * </pre>
  * 
  * <p>


Reply via email to