-
1. Re: RichFaces SKIN
sergeysmirnov Mar 6, 2008 1:06 PM (in response to arvinpd84)Skin applies only on the whole application. If you want customize the particular component, re-define its css classes. I.e. provide your own instead of the default taken from skin.
-
2. Re: RichFaces SKIN
arvinpd84 Mar 7, 2008 4:52 AM (in response to arvinpd84)i´ve tried that, but it doesn´t work. This is what I did:
· in my styles.css file, I added this:
#custom_panel {
headerBackgroundColor:#E8BDBD;
generalBackgroundColor:#F6EAEA;
.....................
.....................
}
· in my page, I did this:
<rich:panel id="custom_panel">
It didn´t work. Can you help me?
thanks -
3. Re: RichFaces SKIN
metin.osman Mar 7, 2008 8:00 AM (in response to arvinpd84)Your panel Id may be modified by JSF, for example if it's in a form called myForm, it will become myForm:custom_panel.
Then your CSS class won't apply to it.
You'd better declare your CSS this way :.custom_panel { headerBackgroundColor:#E8BDBD; generalBackgroundColor:#F6EAEA; ..................... ..................... }
And set styleClass attribute for your panel :<rich:panel styleClass="custom_panel"> ... <rich:panel>
-
4. Re: RichFaces SKIN
metin.osman Mar 7, 2008 8:05 AM (in response to arvinpd84)One thing more, i did'nt payed attention to your CSS.
Your CSS style class is incorrect : there's no CSS attribute called "headerBackgroundColor".
You should overwrite the CSS attribute (ex: background-color, font-size, ...) in your class, not the skin properties. -
5. Re: RichFaces SKIN
arvinpd84 Mar 12, 2008 5:41 AM (in response to arvinpd84)i want to change that properties... how do i do that??
i want my panel to appear with "Sakura" skin colors.
thx