12 Replies Latest reply on Feb 25, 2008 9:42 AM by David Morgan

    actionListener doesnt work after datascrolling

    Nicola Newbie

       

      <rich:dataTable id="tab1" value="#{sdt.lista}" var="dati" rows="20"
       onRowMouseOver="this.style.backgroundColor='#A5CBFF'"
       onRowMouseOut="this.style.backgroundColor='#FFFFFF'"
       >
       <f:facet name="header">
       <rich:datascroller id="scroller"/>
       </f:facet>
       <rich:column>
       <f:facet name="header">
       <a4j:commandLink value="id" reRender="tab1" actionListener="#{sdt.doSort}"/>
       </f:facet>
       <h:outputText value="#{dati.id}" />
       </rich:column>
      ......more columns.......
      
      and in the bean:
      
      public void doSort(ActionEvent e){
       HtmlAjaxCommandLink a = (HtmlAjaxCommandLink)e.getComponent();
       sort=a.getValue().toString();
       }
      
      
      until i dont click the datascroller everything goes fine, but after that the doSort (i see in debug) is not called at all. Any idea?
      
      I'm using richfaces 3.1.3