Hi I am trying to implement drop feature of a4j with JSF Datatable. I have a datatable and I want to drop components into that data table. How do i do it.
The code for dropping it in a tree works fine:
Here's is the code of dropping it to the tree, but when i try to drop the same into a data table it doesn't work.
<rich:treeNodesAdaptor id="packageNodeAdaptor" nodes="#{target.packages}" var="package">
<rich:treeNode id="package" icon="/img/icons/Package_icon.png"
iconLeaf="/img/icons/Package_empty_icon.png" ajaxSingle="false"
acceptedTypes="dbObject">
<rich:dndParam name="label" value="Add to #{package.name}" />
<a4j:support event="ondrop"
action="doAddDBObjectToPackage"
reRender="targetsMaster,sourcesDetailPanel" status="waitStatus" >
<f:setPropertyActionListener value="#{package}"
target="#{workspace.selectedPackage}" />
</a4j:support><a4j:commandLink
value="#{package.name}" id="commandLink#{package.name}" reRender="targetsDetailPanel">
<f:setPropertyActionListener value="#{package}"
target="#{workspace.selection}" />
</a4j:commandLink>
</rich:treeNode>
</rich:treeNodesAdaptor>
When I try to put the code in h:dataTable it doesnt work.
Here is the datatable part of it:
<rich:dndParam name="label" value="Add to #{package.name}" />
<a4j:support event="ondrop"
action="doAddDBObjectToPackage"
reRender="componentDetailInfoTab,sourcesDetailPanel" status="waitStatus" >
<f:setPropertyActionListener value="#{package}"
target="#{workspace.selectedPackage}" />
</a4j:support>
</rich:dataTable>
Can you guide me how to resolve it.
Thanks, Abdul