Hi,

I get the error message:

"Can not bind the same target property 'label' twice"

var selectedNode = this.getTree().getSelection()[0];

var parent = selectedNode.getParent();

parent.remove(selectedNode);

This code removes the node in my list. But if I want to create
a new node with the same name I get the above error.

So the model is not deleted and still in my array. Here my node-class

extend : qx.core.Object,

  construct : function() {
    this.base(arguments);

    this.setChildren(new qx.data.Array());
  },

  properties : {

         children : {
               check: "qx.data.Array",
               event: "changeChildren"
         },
         child : {
             check : "summix.virtual.model.Node",
             event : "changeChild",
             nullable : true
         },
         nodeId : {
               nullable:false,
               event: "changeNodeId"
         },
         parentId : {
               nullable:true,
               event: "changeParentId"
         },
      text : {
         nullable:false,
         event : "changeText"
      }
  }

I guess, that there is probem that no event is fired when a remove a node.
Cannot find a solution!!!


Cheers,

Phil




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to