File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Problem with CSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with CSS" Watch "Problem with CSS" New topic
Author

Problem with CSS

Dan Hoang
Greenhorn

Joined: Oct 29, 2008
Posts: 1
Hello,

I am new to JSF, and spent serveral days on an issue with it. I am working on a JSF page which uses a template. This template already have CSS rules defined. Now I want to add new rules for my new page (particularly, some classes to use with columnClasses attrib of a dataTable), but I dont have control of the template and its asscociated CSS file, because it is from a jar library.
Could you show me how to work around this?

My new JSF has this:
<ui:composition template="../../templates/standard.xhtml">
<ui:define name="title">Users Maint</ui:define>

<ui:define name="main">
<<main content goes here>>
</ui:define>

</ui:composition>

Part of standard.xhmtl:
<head>
<title>System Administration</title>
<link rel="stylesheet" type="text/css"
href="#{facesContext.externalContext.requestContextPath}/css/standard.css" />
</head>

<body">
...
<rich:panel styleClass="display-view">
<ui:insert name="main" />
</rich:panel>
...

Any help would be very appreciated.
-dan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with CSS