-
1. Re: Apply style only for particular richfaces component inst
anab Sep 26, 2008 3:19 PM (in response to aoguerrero)You can define a style class for one or more rich:panels by specifying the styleClass attribute. For example, if you want a rich:panel with no border you would write:
<rich:panel styleClass="customPanel"> ... </rich:panel>
in your css file you would define the following:.customPanel{ border:none; }
This would override generic richPanel border. Does this answer your question? -
2. Re: Apply style only for particular richfaces component inst
aoguerrero Sep 26, 2008 5:01 PM (in response to aoguerrero)Hi!, thanks for the quick reply,
well... the problem is that if I create an style class with, for example: background-color:#DDDDDD; ths value wll apply to the big "div" that contains the component (rich:panel), what I need is to define a different color scheme for other parts of the panel, I mean the header and the body.
Regards,
Andres -
3. Re: Apply style only for particular richfaces component inst
anab Sep 28, 2008 8:42 AM (in response to aoguerrero)Take a look at http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/panel.html
At the bottom of the page it tells you which classes to use for custom styles. For example rich-panel-header will style just the header. -
4. Re: Apply style only for particular richfaces component inst
ilya_shaikovsky Sep 29, 2008 6:10 AM (in response to aoguerrero)also attributes like bodyClass and headerClass described in our documents as well.
-
5. Re: Apply style only for particular richfaces component inst
aoguerrero Sep 30, 2008 4:04 PM (in response to aoguerrero)Hi, Thans for your help.
I've tried setting the headerClass to a defined style, but doesn't work:.grayHeader { background-color: #dddddd; border-color: #dddddd; }
<rich:panel header="Current user" headerClass="grayHeader">
But doesn't work...
And I found very bad news for me:
https://cloud.prod.atl2.jboss.com/jira/si/jira.issueviews:issue-html/RF-2351/RF-2351.html -
6. Re: Apply style only for particular richfaces component inst
nbelaevski Sep 30, 2008 9:28 PM (in response to aoguerrero)Hi,
What if you write:<div class="grayHeader">...</div>
? Does class apply?