4 Replies Latest reply on Sep 11, 2008 12:44 PM by Alexander Degenstein

    rich:extendedDataTable JS Error

    Alexander Degenstein Newbie

      Hi,
      do anybody use the rich:extendedDataTable? Because i get the following error when i use them, the usage is like described in the examples (http://livedemo.exadel.com/richfaces-demo/richfaces/extendedDataTable.jsf?tab=usage).
      Here is the error i get:

      Fehler:
       nrows/[i/].id.split(this.prefix)[1] is undefined
      Quelldatei: http://localhost:8080/project/faces/a4j/g/3_2_2.GAorg/richfaces/renderkit/html/scripts/extended-data-table.js
      Zeile: 52


      Do anybody know the exact cause of these error?

        • 1. Re: rich:extendedDataTable JS Error
          Alexander Degenstein Newbie

          Oh, i've forgotten to say, that this error occures in the following browsers: IE7,Firefox/3.0.1.

          • 2. Re: rich:extendedDataTable JS Error
            Ilya Shaikovsky Master

            now there is a bug present which prevent extendedDataTable usage outside the form. We'll fix it. Please add h:form around the table.

            • 3. Re: rich:extendedDataTable JS Error
              Alexander Degenstein Newbie

              Thanks for the reply!
              After i have added the h:form tags the error occurs anymore :(...

              the code looks following:

              <?xml version="1.0" encoding="iso-8859-1"?>
              <ui:composition 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:a4j="http://richfaces.org/a4j"
               xmlns:rich="http://richfaces.org/rich">
               <h:form>
               <rich:extendedDataTable selection="#{staffer.selection}"
               rowKeyVar="rkv" height="500px" width="800px" id="showall"
               var="oneStaffer" value="#{staffer.stafferList}" sortMode="single">
               <rich:column>
               <f:facet name="header">
               <h:outputText styleClass="headerText" value="Optionen" />
               </f:facet>
               </rich:column>
               <rich:column>
               <f:facet name="header">
               <h:outputText styleClass="headerText" value="Ges." />
               </f:facet>
               <h:outputText style="padding-left:5px" value=" #{oneStaffer.sex}" />
               </rich:column>
               <rich:column>
               <f:facet name="header">
               <h:outputText styleClass="headerText" value="Title" />
               </f:facet>
               <h:outputText style="padding-left:5px" value="#{oneStaffer.title}" />
               </rich:column>
               <rich:column>
               <f:facet name="header">
               <h:outputText styleClass="headerText" value="Vorname" />
               </f:facet>
               <h:outputText style="padding-left:5px"
               value=" #{oneStaffer.firstname}" />
               </rich:column>
               <rich:column>
               <f:facet name="header">
               <h:outputText styleClass="headerText" value="Nachname" />
               </f:facet>
               <h:outputText style="padding-left:5px"
               value="#{oneStaffer.lastname}" />
               </rich:column>
               <rich:column>
               <f:facet name="header">
               <h:outputText styleClass="headerText" value="Shortcut" />
               </f:facet>
               <h:outputText style="padding-left:5px"
               value="#{oneStaffer.shortcut}" />
               </rich:column>
               <rich:column>
               <f:facet name="header">
               <h:outputText styleClass="headerText" value="position" />
               </f:facet>
               <h:outputText style="padding-left:5px"
               value="#{oneStaffer.position}" />
               </rich:column>
               <rich:column>
               <f:facet name="header">
               <h:outputText styleClass="headerText" value="E-Mail" />
               </f:facet>
               <h:outputText style="padding-left:5px" value="#{oneStaffer.email}" />
               </rich:column>
               <rich:column>
               <f:facet name="header">
               <h:outputText styleClass="headerText" value="Tel." />
               </f:facet>
               <h:outputText style="padding-left:5px" value="#{oneStaffer.phone}" />
               </rich:column>
               <rich:column>
               <f:facet name="header">
               <h:outputText styleClass="headerText" value="Fax" />
               </f:facet>
               <h:outputText style="padding-left:5px" value="#{oneStaffer.fax}" />
               </rich:column>
               <rich:column>
               <f:facet name="header">
               <h:outputText styleClass="headerText" value="Nummer" />
               </f:facet>
               <h:outputText style="padding-left:5px"
               value="#{oneStaffer.staffNumber}" />
               </rich:column>
               </rich:extendedDataTable>
               </h:form>
              </ui:composition>


              the table works with a rich:scrollableDataTable.

              • 4. Re: rich:extendedDataTable JS Error
                Alexander Degenstein Newbie

                Hey people,
                it works :)...its so nice! :)

                anything in my html structure was wrong, thus, that my validations are failed in a JS error too. Also i thought there must be anything wrong. After i have restructured the html, it works :)