2 Replies Latest reply on May 15, 2008 1:45 PM by Andreas Franke

    style problem in 3.1.2.GA

    Andreas Franke Apprentice

      Hi,

      probably this is a old theme. My defined style is overridden from richfaces.

      There is a template (template.xhtml) using stylesheet css.css with following style class:

      .currentRow{
       background-color: #FDC544;
       color:#FFFFFF;
      }

      in template.xhtml
      <a:loadStyle src="resource:///stylesheet/css.css"/>



      and there is a richfaces component using this class
      <?xml version="1.0" encoding="ISO-8859-1"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:p="http://jboss.com/products/seam/pdf"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:rich="http://richfaces.org/rich"
       template="layout/template.xhtml"
       xmlns:a="https://ajax4jsf.dev.java.net/ajax">
       <ui:define name="content">
       <rich:scrollableDataTable height="225px" width="800px" frozenColCount="1"
       id="shortQueryResult" rows="300"
       value="#{reportAnzeige.resultList}" var="shortQueryResult" styleClass="resultTable"
       selectedClass="currentRow"
       rowClasses="odd-row, even-row"
       rendered="#{not empty reportAnzeige.resultList}">
       <rich:column width="25px" style="text-align:center;">
       <f:facet name="header">
       <h:outputText value="Nr"></h:outputText>
       </f:facet>
       <h:outputText value="#{shortQueryResult.placing}"></h:outputText>
       </rich:column>
       </rich:scrollableDataTable>
      



      now these class are overriden by richfaces styles

      .dr-sdt-row-active {eAGLZKr5DAADWQHL (line 265)
      color:#B1ADA7;
      }
      .dr-sdt-row-selected {eAGLZKr5DAADWQHL (line 263)
      background-color:#F1EEE9;
      }


      And I have the same problem with a panel component.

      Anythink what I can do solving this?