[
http://jira.jboss.com/jira/browse/RF-2516?page=all ]
Ralf Loechte updated RF-2516:
-----------------------------
Description:
I have a rich:tree with drag-n-drop support and an attached rich:contextMenu to the nestet
rich:treeNode. if you click right on a node, the contextMenu will open. After click on the
menuItem the cursor changes to the dragIndicator Icon and you drag/drop the element.
The correct behavior should be that nothing happens in terms of drag-n-drop after click on
a contextMenu in a tree.
<rich:tree
switchType="client" value="#{hierarchyMainBean.data}"
var="item"
nodeFace="#{item.type}" binding="#{hierarchyMainBean.tree}"
ajaxSubmitSelection="false" preserveModel="state"
immediate="false"
acceptedTypes="member" dragIndicator="treeIndicator"
dragValue="#{item}"
dropListener="#{hierarchyMainBean.processDropTree}">
<rich:treeNode
type="member"
dragType="member"
dragValue="#{item}"
acceptedTypes="member">
<h:outputText value="#{item.name}" />
<rich:dndParam name="label" type="drag"
value="#{item.name}" />
<rich:contextMenu event="oncontextmenu"
attached="true"
submitMode="ajax">
<rich:menuItem value="cut" limitToList="true"
actionListener="#{hierarchyMainBean.processCutElement}">
</rich:menuItem>
</rich:contextMenu>
</rich:treeNode>
</rich:tree>
was:
I have a rich:tree with drag-n-drop support and an attached rich:contextMenu to the nestet
rich:treeNode. if you click ricght on a node, the contextMenu will open. After click on
the menuItem the cursor changes to the dragIndicator Icon and you drag/drop the element.
<rich:tree
switchType="client" value="#{hierarchyMainBean.data}"
var="item"
nodeFace="#{item.type}" binding="#{hierarchyMainBean.tree}"
ajaxSubmitSelection="false" preserveModel="state"
immediate="false"
acceptedTypes="member" dragIndicator="treeIndicator"
dragValue="#{item}"
dropListener="#{hierarchyMainBean.processDropTree}">
<rich:treeNode
type="member"
dragType="member"
dragValue="#{item}"
acceptedTypes="member">
<h:outputText value="#{item.name}" />
<rich:dndParam name="label" type="drag"
value="#{item.name}" />
<rich:contextMenu event="oncontextmenu"
attached="true"
submitMode="ajax">
<rich:menuItem value="cut" limitToList="true"
actionListener="#{hierarchyMainBean.processCutElement}">
</rich:menuItem>
</rich:contextMenu>
</rich:treeNode>
</rich:tree>
Drag-n-Drop Tree with Context Menu
----------------------------------
Key: RF-2516
URL:
http://jira.jboss.com/jira/browse/RF-2516
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4, 3.2.0
Reporter: Ralf Loechte
I have a rich:tree with drag-n-drop support and an attached rich:contextMenu to the
nestet rich:treeNode. if you click right on a node, the contextMenu will open. After click
on the menuItem the cursor changes to the dragIndicator Icon and you drag/drop the
element.
The correct behavior should be that nothing happens in terms of drag-n-drop after click
on a contextMenu in a tree.
<rich:tree
switchType="client" value="#{hierarchyMainBean.data}"
var="item"
nodeFace="#{item.type}"
binding="#{hierarchyMainBean.tree}"
ajaxSubmitSelection="false" preserveModel="state"
immediate="false"
acceptedTypes="member" dragIndicator="treeIndicator"
dragValue="#{item}"
dropListener="#{hierarchyMainBean.processDropTree}">
<rich:treeNode
type="member"
dragType="member"
dragValue="#{item}"
acceptedTypes="member">
<h:outputText value="#{item.name}" />
<rich:dndParam name="label" type="drag"
value="#{item.name}" />
<rich:contextMenu event="oncontextmenu"
attached="true"
submitMode="ajax">
<rich:menuItem value="cut" limitToList="true"
actionListener="#{hierarchyMainBean.processCutElement}">
</rich:menuItem>
</rich:contextMenu>
</rich:treeNode>
</rich:tree>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira