ICEfaces-EE
  1. ICEfaces-EE
  2. IPCK-60

Can't drag and drop nodes to a leaf node

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2.GA
    • Fix Version/s: 1.8.2.GA_P01
    • Component/s: Facelet Components
    • Labels:
      None
    • Environment:
      All

      Description

      With the dragAndDropTreeTable component it is not possible to drag a node to a leaf node. For example, on the composite component showcase, if a user removes all of the nodes from a parent node (drag target) the node becomes a leaf node. This doesn't allow for any nodes to be added back into the node.

        Activity

        Hide
        Brad Kroeger added a comment -

        Revision #22133 - Removed statement setting IceUserObject to leaf when it has no children. More importantly, isLeaf() call from the page is now returning the IceUserObject isLeaf() result rather than the DefaultMutableTreeNode isLeaf() call, which always checks the number of children when determining the result.

        Show
        Brad Kroeger added a comment - Revision #22133 - Removed statement setting IceUserObject to leaf when it has no children. More importantly, isLeaf() call from the page is now returning the IceUserObject isLeaf() result rather than the DefaultMutableTreeNode isLeaf() call, which always checks the number of children when determining the result.
        Hide
        Brian Leathem added a comment -

        Is there a mutator method for the leaf property of IceUserObject, so that the TreeTableNode can be set/initialised to be a non-leaf?

        The TreeTableNode toglleRow method looks at the DefaultMutableTreeNode isLeaf() result, should this also be changed to look at the IceUserObject. isLeaf() result? (This way expanding.collapsing an empty node will toggle the +/-)

        Thanks for looking at this.

        Brian Leathem

        Show
        Brian Leathem added a comment - Is there a mutator method for the leaf property of IceUserObject, so that the TreeTableNode can be set/initialised to be a non-leaf? The TreeTableNode toglleRow method looks at the DefaultMutableTreeNode isLeaf() result, should this also be changed to look at the IceUserObject. isLeaf() result? (This way expanding.collapsing an empty node will toggle the +/-) Thanks for looking at this. Brian Leathem

          People

          • Assignee:
            Brad Kroeger
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: