On Fri, 29 Jul 2005 14:27:39 -0700, Phil Kulak <[EMAIL PROTECTED]> wrote:

On 7/29/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
Once again, this has become a philosophical discussion.
I say tomato you say tomato.

This is going to live as a contrib package so it wont distrub anything,
people who prefer this style will use it.

Besides you can do

 final List mylist;
 new DataProvider() {
        public int itemCount() { return mylist.size(); }
        public Iterator iterator(int first, int count) { return
mylist.listIterator(first); }
        public IModel model(Object o) { return new Model(o); }
}

And you have a list.

Does DataProvider implement java.util.List? Because unless it does, I
don't have a List. ;)

No it does not implement j.u.List and OrderedPageList is a good example why not.

Igor needs an eight-liner where you need a helper-class which is complicated enough to put in an extra contribution-package. OrderedPageList adds some indirection to get something which is less efficient and more work to use.

Sure you have a List, with all those nice methods unfortunately many are not supported and many are not recommended to use. To me OrderedPageList is not a List it is a DataProvider which happens to implement List because of ListView. Of course the user must know and this is exactly what the user does with one spot when using Igors interface.


Christian



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



--
Christian Essl
        

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



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to