Actually the name of css classes added automatically can't be changed.
It will be possible in the next beta of the library.

Fabrizio

PS. "_" is not a valid character in css classes


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
fredatwork
Sent: Monday, December 15, 2003 5:53 PM
To: Display Tag Mailing List
Subject: [displaytag-user] Odd & even

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.


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to