This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

adding richfaces to a template with an external css file  RSS feed

 
Binnie Fabian
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day!
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.
Example:
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.
 
Tim Holloway
Bartender
Posts: 18661
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!