3 Replies Latest reply on Aug 31, 2009 5:29 AM by nbelaevski

    Error in JSF Richfaces DataTable

      Hello out there,

      I have a big Problem.
      I am trying to style a richfaces datatable with CSS.
      On the webpage "http://docs.jboss.org/richfaces/3.3.1.GA/en/devguide/html/rich_dataTable.html" is an example that I tried out, but it doesn't work for me. (It's the example about changing rich-table-cell and headerClass.)

      My JSF Code snippet:

      ...
      <rich:dataTable id="someId" value="#{Bean.Field}" var="field" headerClass="myClass" >
      <!-- content is irrelevant -->
      </rich:dataTable>
      ...

      My CSS Code snippet:

      ...
      .rich-table-cell{
      font-weight:bold;
      }
      .myClass{
      font-style:italic;
      }
      ...

      The first class (changing the table-cell into a bold font) works properly, but as soon as I insert the "myClass" into the JSF Page, I get the following error:

      javax.servlet.ServletException: object is not an instance of declaring class
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      ... (and some more)


      I hope that anybody can help me with this!

      Thanks for any guesses oder hints.

      Greetings, Versed