12 Replies Latest reply on Sep 29, 2010 9:52 PM by rvadrevu

    strange JS errors with rich:scrollableDataTable

    merlin-hst

      Hi,

      I'm not sure if I should ask it here or in the developer group, but I have some problems with a rich:scrollableDataTable in the IE7+8 because of some JS errors (I think). For example the header of the table is not displayed. But the error occurs only sometimes. Here are the errors that are shown in the IE:

      'style' is null or not an object
      line 29
      character 118
      Code: 0
      URI: http://localhost:8080/webportal/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/controls-scrollable-data-table.js

      But sometimes I'm getting another error:

      class doesn't support automation.
      line: 45
      character : 184
      Code: 0
      URI: http://localhost:8080/webportal/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/controls-scrollable-data-table.js

      I've tried it with richfaces 3.2.2 and also 3.3.0 (all messages are translated from german to english). With Firefox 3 it works, but there the sorting feature doesn't work. When I try to click on the header another JS error is shown:

      ':' expected, but 'null' found. declaration ignored.
      Source: http://localhost:8080/webportal/faces/presentation/history_data.xhtml;jsessionid=xxx
      line: 0

      And here's my source code:

      <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:c="http://java.sun.com/jstl/core"
      xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j">

      ...
      <t:panelGroup>
      <rich:scrollableDataTable id="historydatatable" height="400px" width="720px" value="#{historyDataController.historyLog}" var="entry" sortMode="single" rows="#{historyDataController.rows}">
      <rich:column sortBy="#{entry.accountName}" width="120">
      <f:facet name="header">
      <h:outputText value="#{bundle['historydata.header.accountName']}" width="120"/>
      </f:facet>
      <h:outputText value="#{entry.accountName}" width="120"/>
      </rich:column>
      ...
      </rich:scrollableDataTable>
      </t:panelGroup>

      So what I'm doing wrong ?
      Lothar