RichFaces skin problem
masenas Mar 18, 2009 9:00 AMHi all,
I'm using RichFaces 3.1.5.GA (I need to support JSF 1.1). AJAX support components works fine. But visual components (Panel, ModalPanel) appears with no style applied. Everything looks fine when I deploy RichFaces test application to Tomcat as a separate application. It seems as if XCSS files aren't converted to a CSS in my application. HTML file contains links to stylesheets:
<link rel='stylesheet' class='component' type='text/css' href='/epts/faces/a4j_3_1_5.GAorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAGLZKr5DAADWQHL' /> <link rel='stylesheet' class='component' type='text/css' href='/epts/faces/a4j_3_1_5.GAcss/panel.xcss/DATB/eAGLZKr5DAADWQHL' />
Contents of the first stylesheet:
<template xmlns:f="http:/jsf.exadel.com/template" xmlns:u="http:/jsf.exadel.com/template/util" xmlns="http://www.w3.org/1999/xhtml"> <verbatim></verbatim> <selector name=".dr-pnl"> <style name="background-color" skin="generalBackgroundColor"></style> <style name="border-color" skin="panelBorderColor"></style> </selector> <selector name=".dr-pnl-h"> <style name="background-color" skin="headerBackgroundColor"></style> <style name="border-color" skin="headerBackgroundColor"></style> <style name="font-size" skin="headerSizeFont"></style> <style name="color" skin="headerTextColor"></style> <style name="font-weight" skin="headerWeightFont"></style> <style name="font-family" skin="headerFamilyFont"></style> <style name="background-image"> <resource f:key="org.richfaces.renderkit.html.GradientA"></resource> </style> </selector> <selector name=".dr-pnl-b"> <style name="font-size" skin="generalSizeFont"></style> <style name="color" skin="generalTextColor"></style> <style name="font-family" skin="generalFamilyFont"></style> </selector> </template>
RichFaces test application generated a little bit different link to a stylesheet:
<link rel='stylesheet' class='component' type='text/css' href='/richfaces-test-jsp/a4j_3_1_5.GAorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAGb2nBoCQAGAAJ8.jsf' /> <link rel='stylesheet' class='component' type='text/css' href='/richfaces-test-jsp/a4j_3_1_5.GAcss/panel.xcss/DATB/eAGb2nBoCQAGAAJ8.jsf' />
and these stylesheets contains standard CSS.
Any ideas what's wrong with my application?
Regards,
Marius