adding richfaces to a template with an external css file
posted 6 years ago
I would like to ask, how can I add richfaces to a template with an external css file.
I am having trouble with the skinning feature of richfaces because it has some conflict with my css.
I placed a rich:togglePanel inside a <div>, then I want to change the style/width of the <div> through an external css file. The css file doesnt work. Please give me some light about this issue.
It is perfectly possible to mix RichFaces skinning with custom overrides, including overrides on a per-page basis. The only restrictions are that the normal precedence rules of CSS apply, so it does matter where and how on the page you do you definition and your style references.
Also, to avoid having your CSS styles get lost or mangled, you should define them WITHIN the page's JSF view element and use the f:verbatim tag to wrap the script tag.
An IDE is no substitute for an Intelligent Developer.