This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes CSS including not working in JSF2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "CSS including not working in JSF2.0" Watch "CSS including not working in JSF2.0" New topic
Author

CSS including not working in JSF2.0

Rajesh Chokkalingam
Greenhorn

Joined: Jul 09, 2013
Posts: 15
Hi,

I'm new to JSF 2.0. i want to apply style for JSF LAYOUT like want to change remove border, set bg color. It is working through the style. but it's not working when i included css file. Is there any other way to include css file in JSF. And also i have removed dafault styles using




Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964
    
  19

The Oracle docs on this element are really putrid, but apparently the following should work:


I'm not sure what your absolute resource path resolves to in terms of an actual URL (you can use a browser's View Page Source feature to check it). There's a good chance that it's overriding JSF's concatenation of the webapp context into the generated URL.

Using the above notation should work if your WAR has a /resources/css directory in it.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
wood burning stoves
 
subject: CSS including not working in JSF2.0
 
Similar Threads
Page doesn't submit properly with h:head
Error:The XML page cannot be displayed Cannot view XML input using style sheet
Why events are not fired when value changes in h:selectOneMenu? I am stuck!
error message when browsing in the application
FaceletContext.includeFacelet trouble