> 
> >> > Does DataItem have to be a public Component?
> >
> > I left it open in case someone needs to extend it for 
> whatever reason.
> 
> I understand, but what can you put in a custom DataItem you 
> can not put in your custom IModel at the first place?

Custom dataitem gives you access to the webmarkupcontainer not just the
model, so ie

public class alternatingdataitem extends dataitem {
        public alternatingdataitem(final String id, int index, final IModel
model) {
                if (index%2==0) add(new OddRowAttributeModifier());
                else add(new EvenRowAttributeModifier());
        }
}



> Another thing:
> I think when iterating over the Iterator of IDataProvider 
> there should also be a test that the page-size is not exceeded.

Good catch. Done, will check it in when cvs is up.

-Igor




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to