On 12/14/06, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:

* [EMAIL PROTECTED]:
> Author: ivaynberg
> Date: Wed Dec 13 17:16:54 2006
> New Revision: 486921
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=486921
> Log:
> WICKET-150: javadoc hook to wicket.markup.repeater
>
> Modified:
>     incubator/wicket/branches/wicket-1.x
/wicket/src/main/java/wicket/markup/html/list/ListView.java

> + * <strong>WARNING:</strong> though you can nest ListViews within
Forms, you
> + * HAVE to set the optimizeItemRemoval property to true

I think optimizeItemRemoval has been renamed to reuseItems.  Maybe
we should reflect that in the doc.


thanks, this was done in 2.0 but not in 1.3 :|

And also mention that although it's  possible to use ListView in a
Form,  one  could  get  unexpected  behavior  when  modifying  the
ListView  structure (because  of the  id generation  based on  the
position).


here i disagree. as ive said before listview is meant to work with lists. in
a list your pirimary key/id IS the index of the element in the list.
if that is not true and you still want to use listview you have to override
ListView.getListItemModel() and return a model that will work off the PK.
or use the other repeaters that are not meant to work with lists. that is
why i wrote that little javadoc header. maybe i should make it clearer what
the List means there.

-igor




--
     Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

Reply via email to