This content has been marked as final.
Show 1 reply
-
1. Re: extendedDataTable: avoid selectionChange event on double click
dako_t Dec 29, 2015 8:06 AM (in response to dako_t)Ok, everything I had to do is to work with a queue and to group both requests in one queue. The queue treats both requests as the same request and thus the ignoreDupResponses attribute is working.
Example:
<h:form id="myform"> <a4j:queue name="overviewSelectionQueue" ignoreDupResponses="true" requestDelay="200"/> <a4j:jsFunction name="editWithDoubleClick" action="#{myController.editWithDoubleClick}"> <a4j:param name="selectedId" assignTo="#{myController.selectedId}" /> <a4j:attachQueue name="overviewSelectionQueue" requestGroupingId="overviewSelection"/> </a4j:jsFunction> <rich:extendedDataTable id="myTable" value="#{myController.myList}" var="item" selectionMode="single" selection="#{myController.selection}" onrowdblclick="editWithDoubleClick('#{item.id}');"> <a4j:ajax event="selectionchange" listener="#{myController.overviewTableSelectionChanged}" execute="@this" limitRender="true"> <a4j:attachQueue name="overviewSelectionQueue" requestGroupingId="overviewSelection"/> </a4j:ajax> ... <h:form>