3 Replies Latest reply on Oct 20, 2009 7:49 AM by Ilya Shaikovsky

    javascript error in extendedDataTable

    Ling Ip Newbie

      I copied the demo extendedDataTable component into a standalone page. Only filter action is not working interactively like the demo. Further digging reveals a javascript error that prevents Ajax from working.
      The error is "elt is null or not an object".
      Is there a work around for the filter event to work interactively.
      My code is listed below.

      <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
      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:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
      <jsp:directive.page contentType="text/html;charset=utf-8" />
      <f:view>
      <h:form>

      <rich:extendedDataTable value="#{distListBean.lists}" var="cap"
      id="table" width="580px" height="400px">

      <rich:column sortable="true" sortBy="#{cap.owner}"
      filterBy="#{cap.owner}" filterEvent="onkeyup" width="170px"
      rendered="true" label="Owner">
      <f:facet name="header">
      <h:outputText value="Owner" />
      </f:facet>
      <h:outputText value="#{cap.owner}" />
      </rich:column>
      </rich:extendedDataTable>
      </h:form>
      </f:view>
      </jsp:root>