0 Replies Latest reply on Sep 29, 2008 9:19 AM by Sébastien Doncker

    Problem with scrollingDataTable and css @IMPORT

    Sébastien Doncker Newbie

      Hi,

      I have a problem with a scrollingDatatable not displaying its header.
      I test and found a connection between a @IMPORT in my css and the header displaying.

      When I have a @IMPORT in my css (even if this import leads to an empty CSS file), the scrollingDatatable header is not displayed.
      When I haven't @IMPORT in my css, the scrollingDatatable header is well displayed.

      Do you know if this is a bug ? or if there is a work around ? or something I do wrong ?

      For information, I use RichFaces 3.2.1.GA, JBoss 4.2.2 and Seam 2.0.3 CR1.
      Here is a simple sample of my code.

      main.css :

      @IMPORT url("test.css");
      


      test.css :
      body {
       background-color: red;
      }
      


      index.xhtml :
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:rich="http://richfaces.org/rich"
       xmlns:a4j="http://richfaces.org/a4j">
       <head>
       <link href="main.css" rel="stylesheet" type="text/css" />
       </head>
      
       <body>
       <rich:scrollableDataTable value="#{myBean.data}" var="data" width="500px" height="200px">
       <rich:column>
       <f:facet name="header">
       <h:outputText value="name"/>
       </f:facet>
       <h:outputText value="#{data.name}"/>
       </rich:column>
       </rich:scrollableDataTable>
       </body>
      </html>
      


      Thanks in advance for your answers.
      Seb