I am a fan of OrderedRepeater as well (see on the users list the last few entries on this thread: http://sourceforge.net/mailarchive/forum.php?thread_id=8999253&forum_id=42411 )

As you can see on a thread in the users list I am also a fan of the OrderedRepeatingView. (Look at the last few messages at http://sourceforge.net/mailarchive/forum.php?thread_id=8999253&forum_id=42411)

A removeAll() whithout item-reuse works for me with most lists (and lists with FormComponents).


Why not introduce the concept of IItemReuseStrategy at the
OrderedRepeater level (should also be of interest at the Repeater
level, except the fact that in this case the index parameter will not
be usefull).

If you need item-reuse (alias optimizedItemRemoval) without an IDataProvider than take a look at AbstractPagableView, which is a direct subclass of OrderedRepeater. You could also implement it directly in the internalOnBeginRequest of OrderedRepeatingView, but this means some boiler-plate code.


Indeed, I would like to only use the "Ordered" aspect of the repeater
for Forms, not the Pageable (no interest with the current strategy
used for Forms submission/validation).


DataView handels item-reuse quite nicely and IMO it is the main reason for its existence, because it is also quite easy to make OrderedRepeatingView Pageable.

Just my 0,01€

Christian


--
Laurent


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop



--
Christian Essl
        

        
                
___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to