You should specify separate css classes for the odd and the even labels: public class CSSClass extends AttributeModifier { public CSSClass(final String clazz) { super("class", true, new AbstractReadOnlyModel() { /** */ private static final long serialVersionUID = 1L;
@Override public Object getObject() { return clazz; } }); } } public class MyPage extends WebPage { public MyPage() { add(new Label().add(new CSSClass("even_line"))); add(new Label().add(new CSSClass("even_odd"))); } } 2008/3/19, vincent Renaville <[EMAIL PROTECTED]>: > Hello, > > I try to display a application a table with odd line in red and even line in > blue. > For each cell of the table I use a label. > > Somebody know how can I set the color to a label. > > Thanks for your help > > > Vincent > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]