0 Replies Latest reply on Sep 26, 2008 11:54 AM by ameo

    scrollableDataTable and a4j:support is leading to JavaScript

    ameo

      jboss-portal 2.6.5 and richfaces 3.2.2.GA

      I have a scrollableDataTable which embed an a4j:support event. When I click a row I get a JavaScript Error 'null is Null or no object.


      <rich:scrollableDataTable
       rowKeyVar="rkv" frozenColCount="2"
       height="250px"
       width="315px"
       id="scrolltable"
       rows="10"
       columnClasses="scrollcol"
       selection="#{scroll.a}"
       value="#{bean.cars}"
       var="item"
       sortMode="single">
      
       <a4j:support event="onRowClick"
       actionListener="#{bean.selectionChanged}"
       reRender="selection" immediate="true" >
       </a4j:support>
      
       <rich:column id="cartitel">
       <f:facet name="header">
       <h:outputText styleClass="headerText"
       value="#{msg.car}">
       </h:outputText>
       </f:facet>
       <h:outputText value="#{car.color}">
       </h:outputText>
       </rich:column>
      
      ....columns..
      
      </rich:scrollableDataTable>
      
      


      The selection works and the reRender works fine, but if the error. When I remove the aj4:support tag the error is gone. Do you know what is wrong here ?