6 Replies Latest reply on Feb 17, 2009 8:07 AM by nbelaevski

    Richfaces component css

    firas_abah

      I am trying to evaluate the Richfaces 3.1.6. I added the following to a JSP:

      <rich:dataTable value="#{pc_Rich1.companies}" var="company" >
       <rich:column>
       <f:facet name="header"><h:outputText value="Name" /></f:facet>
       <h:outputText value="#{company.name}"></h:outputText>
       </rich:column>
       <rich:column>
       <f:facet name="header"><h:outputText value="Address" /></f:facet>
       <h:outputText value="#{company.address}"></h:outputText>
       </rich:column>
       </rich:dataTable>
      

      When i try to access the page using a web browser, It seems that no CSS is applied to that rich:dataTable.

      When i "View Page Source", I see (in the head section of the html page) Something like:

      <link rel='stylesheet' class='component' type='text/css' href='/Presentation/a4j_3_1_6.SR1css/table.xcss/DATB/eAHz5TR5BgACoQFx.faces' />
      

      I tried to access that css resource from a separate window: I get some JSF like output. Here is a sinippet:

      <template xmlns:f="http:/jsf.exadel.com/template" xmlns:u="http:/jsf.exadel.com/template/util" xmlns="http://www.w3.org/1999/xhtml"><selector name=".dr-table"><style name="border-top" value="solid"><verbatim skin="tableBorderWidth"></verbatim>...............................
      


      Any one knows how to fix this?


      Thanks a lot.

        • 1. Re: Richfaces component css
          nbelaevski

          Please post your web.xml file.

          • 2. Re: Richfaces component css
            firas_abah

            Here is a snippet from web.xml:

             <context-param>
             <param-name>org.richfaces.SKIN</param-name>
             <param-value>blueSky</param-value>
             </context-param>
             <filter>
             <display-name>RichFaces Filter</display-name>
             <filter-name>richfaces</filter-name>
             <filter-class>org.ajax4jsf.Filter</filter-class>
             </filter>
             <filter-mapping>
             <filter-name>richfaces</filter-name>
             <servlet-name>Faces Servlet</servlet-name>
             <dispatcher>REQUEST</dispatcher>
             <dispatcher>FORWARD</dispatcher>
             <dispatcher>INCLUDE</dispatcher>
             </filter-mapping>
            


            I guess that everything is set according to the User Guide

            • 3. Re: Richfaces component css
              nbelaevski

              Snippet is ok. Do you use MyFaces or JSF RI? Are there any additional filters? How is Faces servlet mapped?

              • 4. Re: Richfaces component css
                firas_abah

                I use Sun JSF 1.1 RI.

                I had 2 other filters in the chain. I removed them from the deployment descriptor and the problem still there.

                Here is the servlet and servlet-mapping parts of my deployment descriptor file:

                 <servlet>
                 <servlet-name>Faces Servlet</servlet-name>
                 <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                 <load-on-startup>-1</load-on-startup>
                 </servlet>
                 <servlet-mapping>
                 <servlet-name>Faces Servlet</servlet-name>
                 <url-pattern>*.faces</url-pattern>
                 </servlet-mapping>
                



                Thank you for being interested in my post

                • 5. Re: Richfaces component css
                  firas_abah

                  By the way, My Application Servler is OC4J 10.1.3.3.0.
                  Not sure if this affect it!

                  • 6. Re: Richfaces component css
                    nbelaevski