When adding Drag n Drop functionality, is it poissble to add dragSupport to an entire dataTable row. I can set an individual cell but not the entire row. I want to be able to drag the entire row....
The code below shows how a cell can be selected and draged... How would I change this so I could select the entire row....
<center> <rich:dataTable id="deadload" cellpadding="0" cellspacing="0" border="0" rows="10" var="next" value="#{dragNdrop.loadItems}"> <f:facet name="header"> <rich:columnGroup> <h:column> <h:outputText value="Id" /> </h:column> <h:column> <h:outputText value="Type" /> </h:column> <h:column> <h:outputText value="Dest" /> </h:column> <h:column> <h:outputText value="Weight" /> </h:column> <h:column> <h:outputText value="ULD" /> </h:column> <h:column> <h:outputText value="Remarks" /> </h:column> </rich:columnGroup> </f:facet> <h:column> <a4j:outputPanel> <rich:dragSupport dragIndicator=":indicator" dragType="CF" dragValue="#{dragNdrop.testParam}"> <rich:dndParam name="label" value="CF" type="drag" /> <a4j:actionparam value="#{next.id}" name="loadId" /> </rich:dragSupport> <h:outputText value="#{next.id}"></h:outputText> </a4j:outputPanel> </h:column> <h:column> <h:outputText value="#{next.type}"></h:outputText> </h:column> <h:column> <h:outputText value="#{next.dest}"></h:outputText> </h:column> <h:column> <h:outputText value="#{next.weight}"></h:outputText> </h:column> <h:column> <h:outputText value="#{next.uldType}"></h:outputText> </h:column> <h:column> <h:outputText value="#{next.remarks}"></h:outputText> </h:column> </rich:dataTable>
Still looking for a way to select an entire row....
Does anyone have any ideas short of adding dragSupport to each cell?