6 Replies Latest reply on Nov 25, 2008 6:37 AM by blakkorange

    onRowDblClick scrollableDataTable not called with ModalPanel

    blakkorange

      Hi !

      Got a page with scrollableDataTable that worked fine with
      a construction like this:

      <rich:scrollableDataTable value="#{_DTCOverview.partdata}"
      var="row"
      selection="#{_DTCOverview.selection}"
      id="overviewtable"
      frozenColCount="1"
      ignoreDupResponses="true"
      rowKeyVar="rkv"
      rowClasses="dtc_overview_row_dark,dtc_overview_row_light"
      height="726px"
      width="1019px"
      styleClass="sdt-overview-table"
      onRowDblClick="doSelect()"
      binding="#{_DTCOverview.table}"
      selectedClass="sdt-overview-darkselection">

      <rich:column width="#{DTCOverviewColumnWidthConstantsBean.dtc_nummer_col_width}" id="ovt_col_dnr">
      <f:facet name="header"><h:outputText escape="false" value="#{appl_text.dtc_header_dtcnumber}"/></f:facet>
      <h:outputText escape="false" value="#{row.dtc_nummer}"/>
      </rich:column>
      .....more columns....

      <a4j:support actionListener="#{_DTCOverview.selectedRowChanged}"
      reRender="dtcoccudetail_cf_text_infotableOV,dtcoccudetail_alarmtic_text_infotableOV,dtcoccudetail_infotic_text_infotableOV"
      event="onselectionchange"
      ajaxSingle="true"
      ignoreDupResponses="true"
      limitToList="true"/>

      </rich:scrollableDataTable>

      <a4j:commandButton id="cmd_hidden" action="#{_DTCOverview.DTCSelected}" value="submit " style="visibility:hidden;display:none;" ignoreDupResponses="true"/>

      ###javascriptfunction
      function doSelect(){
      document.forms['dtcoverview']['dtcoverview:cmd_hidden'].click();
      }
      ###

      if I click on a row the ajaxsupport is started and information on the page is refreshed( the selected row is determined on serverside).
      if I doubleclick a row the javascriptfunction doSelect() is called and the side is forwarded to a detailpage.


      I added ModalPanel for a loadinfo and to block further clicks by the user like PleaseWaitBox described by Sergey Smirnov in Richfaces Cookbook.

      The onRowDblClick does not function anymore...

      Any ideas how to solve?