Hello,
I've got a question about RichFaces and the CSS-integration...
I tried to integrate an external css-file via the normal HTTP-tag in the "< head >"-area:
<link rel="stylesheet" href="/css/text_style.css" type="text/css" />
<h:outputText style="color: #FF0000;" />
<style type="text/css"> body { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10pt; color: #00000; } h1 { font-size: 14pt; font-weight: bold; } h2 { font-size: 12pt; font-weight: bold; } .text_bold { color: #777777; } </style>
<%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <html> <head> <title>SoundBank: Login</title> </head> <body> <f:view> <rich:panel> <f:facet name="header"> <h:outputText value="SoundBank: Login"/> </f:facet> <h:outputText styleClass="text_bold" value="Hallo!" /> </rich:panel> </f:view> </body> </html>
It will be right to add the context path before /css/text_style.css