1 Reply Latest reply on Aug 3, 2009 2:40 AM by Ilya Shaikovsky

    a4j support event=

    Jonh smith Newbie

      event="onRowDblClick" and event="onRowClick" problem


      I have a problem on onRowDblClick event. when double click is done on a row i got a exception with message concurrent call conversation.
      I think the problem is that two onRowClick event are sent to the server.

      can someone help me?


      <rich:dataTable id="cars" var="item" value="#{carManager.cars}" rows="5" width="100%" >
      <a4j:support event="onRowDblClick"
      action="#{cardManager.getCar(item.id)}"
      reRender="carPanel"/>
      <a4j:support event="onRowClick"
      action="#{cardManager.showCar(item)}"
      reRender="showCarPanel" />
      <f:facet name="header">
      <rich:columnGroup>
      <rich:column width="15%">
      <h:outputText value="Car Id" />
      </rich:column>
      </f:facet>
      <rich:columnGroup>
      <rich:column>
      <h:outputText value="#{car.id}" />
      </rich:column>
      </rich:columnGroup>
      </rich:dataTable>

      when I do double click I got one click event and then double click event.
      When I do double click event I want do only action="#{cardManager.getCar(item.id)}" and show reRender="showCarPanel". How i can ignore one click event when i do double click?