-
1. Re: Get rich:dropSupport working inside rich:treeNode
nbelaevski Apr 7, 2010 6:30 PM (in response to prozelit)Hi Dmytro,
Can you please post page code?
-
2. Re: Get rich:dropSupport working inside rich:treeNode
prozelit Apr 8, 2010 3:33 AM (in response to nbelaevski)Nick, Here is the code for the tree:
<div>
<rich:dragIndicator id="indicator1" />
<rich:tree style="width:300px"
value="#{treeService.treeNode}" var="item" componentState="#{treeState.state}"
id="categoryTree" nodeFace="#{item.type}">
<rich:treeNode type="Service" id="serviceNode"><ui:remove><!-- This panel is supposed to accept drag-and-drop,
but doesn't --></ui:remove>
<rich:panel id="pnl-drp-#{item.service.id}"style="height: 5px; background-color: black;" >
<rich:dropSupport id="serviceDrop" acceptedTypes="ser"actionListener="#{treeService.dropListener}" />
</rich:panel><ui:remove><!-- This panel can be dragged, and it works --></ui:remove>
<h:panelGrid columns="2" border="0" id="pnl-s-#{item.service.id}">
<h:outputText value="#{item.service.name}" />
<rich:dragSupport dragType="ser" dragIndicator="indicator1" >
<rich:dndParam name="label" type="drag" value="Move #{item.service.name} to..." />
</rich:dragSupport>
</h:panelGrid>
</rich:treeNode>
</rich:tree><ui:remove><!-- This panel accepts drag-and-drop
(as it is outside the tree?) --></ui:remove>
<rich:panel id="pnl-drp-NONE" style="height: 25px; background-color: black;" >
<rich:dropSupport id="aboDropOutside" acceptedTypes="ser"actionListener="#{treeService.dropListener}" />
</rich:panel>
</div> -
3. Re: Get rich:dropSupport working inside rich:treeNode
ilya_shaikovsky Apr 8, 2010 9:04 AM (in response to prozelit)1 of 1 people found this helpful -
4. Re: Get rich:dropSupport working inside rich:treeNode
prozelit Apr 9, 2010 6:26 AM (in response to ilya_shaikovsky)Thank you Ilya,
And, I found a workaround for this problem:
<rich:treeNode type="Service" id="serviceNode">
<rich:panel id="pnl-drp-#{item.service.id}"
style="height: 5px; background-color: black;" >
<rich:dragSupport dragType="ser" dragIndicator="indicator1"
ondragenter=" this.stopPropagation(); ">
<rich:dndParam name="label" type="drag" value="Move #{item.service.name} to..." />
</rich:dragSupport></rich:panel>
...
-
5. Re: Get rich:dropSupport working inside rich:treeNode
ilya_shaikovsky Apr 9, 2010 6:46 AM (in response to prozelit)thank you! I'll add to issue