[
http://jira.jboss.com/jira/browse/RF-1081?page=comments#action_12387086 ]
Rob Stevens commented on RF-1081:
---------------------------------
I have a similar issue -- I am dragging a value which is dropped on a node. The value is
used to create a new leaf in a backing bean and added to the list of leaves under that
node. The new leaf appears and the label on all of the leaves is correct, but when a leaf
is dragged without doing a page refresh or contract/expand, the value of the dragged
object is incorrect. It is another leaf on the tree under this node. A page refresh or
expanding/contracting will display the correct leaves.
Any idea when this will be addressed?
Thanks.
Drag and Drop within the tree not updating the destination node
---------------------------------------------------------------
Key: RF-1081
URL:
http://jira.jboss.com/jira/browse/RF-1081
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.1
Reporter: Peter Mahoney
Assigned To: Nick Belaevski
Fix For: 3.2.0
When dragging a node to another location on the tree, the source node is updated with the
dropped node removed but the dropped node does not appear at the destination until a page
refresh or a tree node is expanded/contracted.
I have the following tree:
<rich:tree id="quizTree" switchType="ajax"
dropListener="#{quizTreeHandler.questionDrop}">
<rich:treeNodesAdaptor id="groups"
nodes="#{quizTreeHandler.groups}" var="group">
<rich:treeNode dragIndicator=":indicator" dragType="group"
dragValue="#{group}" acceptedTypes="qtiQuestion,question,group"
reRender="quizTree">
<h:commandLink action="#{group.edit}" value="#{empty group.title ?
msgs.quizDefaultQuestionGroupTitle : group.title}" />
</rich:treeNode>
<rich:treeNodesAdaptor id="questions" nodes="#{group.questions}"
var="question">
<rich:treeNode dragIndicator=":indicator"
dragType="question" dragValue="#{question}"
acceptedTypes="qtiQuestion,question" reRender="quizTree">
<h:commandLink action="#{question.view}"
value="#{question.title}" />
</rich:treeNode>
</rich:treeNodesAdaptor>
</rich:treeNodesAdaptor>
</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