dev@woodstock.java.net

Re: how can i change background ,font color in coloumheader in jsf componant

From: richard ratta <Richard.Ratta_at_Sun.COM>
Date: Wed, 04 Jun 2008 10:51:49 -0400

I don't know what version of the components you are using, but typically
what happens is that there is a background color AND an image.

In many cases, for various reasons, the image also implicitly uses that
color.
So if I have a gradient image, not only will the background color be
defined but
an image must be specified and also reflect that color.

The bottom line is that in many cases where you need to change a color
you also have
to change the image referenced in the selector definition.

For example in an older colorAndMedia.css file there was probably a
selector

table.Tbl_at_THEME_CSS@ .TblHdrTxt_at_THEME_CSS@ {
        color:#000000;
        text-decoration:none;
        background:#E1E5E8 url(../images/table/column_gradient.gif)
repeat-x center top;
}

My guess it that the "column_gradient.gif" image, has the color "#E1E5E8".

In the current stylesheets there are issues with ie in that png files
are used for some
of the gradients. ie6 will not be able to render the png file correctly.

-rick

Mattana Sayankuldilok wrote:

> Hi
> I have question about JSF table componant. i try to overide
> stylesheet in TblColHdr_sun4 and TblHdrTxt_sun4 to change color of
> column header ..but the color is not change in table JSF componant.
> Could you please help me to change color of column header..
>
> Thanks
> Mattana