This content has been marked as final.
Show 3 replies
-
1. Re: Problem by drag and drop inner tree
darmstadter Feb 4, 2009 6:03 AM (in response to darmstadter)I have tried with a simply example. I found that, the build-in drag and drop can not work as the same time. It means, by the situation, that a tree node can be dragged and accept the drop. the drag no problem, but the drop can only execute the ondrop, not ondropend and oncomplete. Is this a bug?
<a4j:outputPanel id="treeWrapper" layout="block"> <rich:tree id="portTreePaneId" style="width:200px" dropListener="#{appBean.addChildNode}" switchType="ajax" dragIndicator=":form:indicator" ajaxSubmitSelection="true"> <rich:treeNodesAdaptor nodes="#{appBean.profileNodes}" var="profile" > <rich:treeNode acceptedTypes="pidDrag" dropValue="#{profile.label}" ondrop="alert('ondrop');" typeMapping="{pidDrag:pidDrag}" oncomplete="alert('complete');" dragType="pidDrag" ondropend="alert('ok');"> <a4j:outputPanel layout="block"> #{profile.label} </a4j:outputPanel> </rich:treeNode> <rich:treeNodesAdaptor nodes="#{profile.children}" var="pid" > <rich:treeNode dragType="pidDrag" dragValue="#{pid.label}"> <rich:dndParam name="label" type="drag" value="dragged pid" /> <a4j:outputPanel layout="block"> #{pid.label} </a4j:outputPanel> </rich:treeNode> </rich:treeNodesAdaptor> </rich:treeNodesAdaptor> </rich:tree> </a4j:outputPanel>
-
2. Re: Problem by drag and drop inner tree
ilya_shaikovsky Feb 4, 2009 6:33 AM (in response to darmstadter)https://jira.jboss.org/jira/browse/RF-6029
thanks for your submit! Please vote for the issues and feel free to comment -
3. Re: Problem by drag and drop inner tree
piyushk.singh Feb 25, 2009 9:54 AM (in response to darmstadter)Hi,
Did you manage to get any workaround on the code which you have given. Please help me out as I am also stuck in a similar situation.
Thanks
Piyush