|
I’m starting using the
display tag library. How can I change the name of
the “odd” and “even” class names ?
I wann choose my own class names that are
standardized my own way. The following JSP code
generated this html code : <display:table name="parameters"> <display:column property="orderNumber" title="#" class="TABLE_DATA" headerClass="TABLE_HEADER"/> <display:column property="name" title="Name" class="TABLE_DATA" headerClass="TABLE_HEADER"/> </display:table> <table> <thead> <tr> <th
class="TABLE_HEADER">#</th> <th
class="TABLE_HEADER">Name</th></tr></thead> <tbody> <tr class="odd"> <td
class="TABLE_DATA">1</td> <td
class="TABLE_DATA">first</td></tr> <tr class="even"> <td
class="TABLE_DATA">2</td> <td
class="TABLE_DATA">second</td></tr></tbody></tbody></table> </html> I would like to avoid the “odd”
and “even” class names, and have names like “TABLE_ODD_ROW”
and “TABLE_EVEN_ROW” that I can use in my CSS file. Is there a way to do it ? If not, I would recommend a
change to the library. Fred. |
- RE: [displaytag-user] Odd & even fredatwork
- RE: [displaytag-user] Odd & even Fabrizio Giustina

