Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with CSS  RSS feed

Dan Hoang
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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>>


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

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

Any help would be very appreciated.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!