Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

dataTable, headerClass and columnClasses

843842Mar 15 2005 — edited Aug 12 2008
In the jsf dataTable tag, you can specify a comma separated list of CSS classes for the columns. So, columnClasses="colLeft width150, colRight width75", would result in column1 having a class="colLeft width150" and column2 having a class="colRight width75".

colLeft, colRight, width150 and width75 are CSS classes defined in my main.css stylesheet.

However, I can't find a way to do the same thing for the column headers. The headerClass attribute only allows you to specify a list of CSS classes for EVERY column header, not for each column header individually. So, if I wanted my column1 header to have a particular CSS class or classes (say colLeft) and my column2 header to have another CSS class (say colRight), I can't do it.

Does anyone know a way to do this?

thanks, jeff.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 9 2008
Added on Mar 15 2005
6 comments
548 views