I'm most probably not up-to-date with this issue, but maybe you be able to utilize qooxdoo's qx.core.ObjectRegistry. You can register model objects with it (I don't think model objects are automatically registered, but you might want to check), retrieve their hash codes, and look them up by hash code. You only need to make your server return their hash code as well, and you're all set.
If that doesn't quite fit your bill you might want to re-raise this question in about 2 weeks, when everybody is back from holidays. T. On 08/07/2013 03:42 PM, Michael Elsdörfer wrote: > I take it this has been discussed before a number of times, e.g. > > http://qooxdoo.678.n2.nabble.com/Adding-quot-modelPath-quot-property-to-qx-data-controller-List-td6648554.html > > So I construct a tree using databinding. I then have a server-side > search function that returns objects or object ids of the type used by > the tree model. I want to select one of the objects indicated by the > server in the tree. > > What Qooxdoo would have me do now is iterate over the tree, recursively, > in order to find the correct instance to add to the selection. > > I could also manually keep a hash of ids => instances, and maintain that > hash whenever new objects are created/deleted. > > Quite possible to do, of course. But no fun whatsoever. Shouldn't > Qooxdoo desire to make this use case, and related ones discussed in the > link above, easier for the developer? > > Michael > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
