Look at newRowItem in DefaultDataTable, and OddEvenItem.  The CSS classes 
"odd" and "even" are output for you, just create a css class instead of 
the attribute modifier.



From:   tushar <[email protected]>
To:     [email protected]
Date:   11/18/2010 01:35 PM
Subject:        Re: dynamically change colors of odd/even style for 
defaultDataTable




Got it.

added following line (based on item index)
cellItem.add(new AttributeModifier("style", true, new
Model("background-color:blue"))); 

in populateItem call.


~Tushar
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/dynamically-change-colors-of-odd-even-style-for-defaultDataTable-tp3049310p3049333.html

Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Reply via email to