>> > 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());
}
}
Oh yes. Thanks for this one.
Christian
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
-------------------------------------------------------
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