Closed cboulanger closed 2 years ago
updated to fix code and add missing $.Form.addOwnedQxObject(this.getMainWidget());
The "module.objectId" feature looks great- I see it completely supplanting the Qookery ID system which was devised to cover the same needs and with the same goals. As with any object registration system, there are many secondary complications (garbage collection, ID collisions, etc), so let's keep the issue open until QX6 is released.
Any ETA for this feature? Would be great to have it...
I opted for a full replace of former IDs by the new support provided by Qooxdoo 6. So far the results are very satisfying. I will wait for your feedback before closing this issue.
(updated) I am using the new (optional) object id feature of qooxdoo
http://www.qooxdoo.org/devel/api/#qx.core.Id http://www.qooxdoo.org/devel/api/#qx.core.MObjectId
which lets you use well-known application-wide ids to address widgets. They are declared in a relative way, i.e. each qx.core.Object is assigned a (non-unique) id and then attached to a logical parent ("owner"), which is distinct from the layout parent and can be any arbitrary qooxdoo object. The topmost object needs to be registered with the API. The owner-owned relationship results in a unique id composed of the individual object ids.
In my form, I declare them this way:
It would be nice to have an xml syntax to get rid of these script tags this, either by an additional attribute
or, my preference, the Qookery id is automatically re-used as the object id (to be overridden by code if necessary). It would need a check of the environment variable "module.objectId" because object ids are an optional feature.