Hi Péter, Szántai Péter wrote: > I get these errors when try to use my defined class. > > 1. The configuration key "deferredInit" of property "textBox" in class > "custom.TextBox" is not allowed! > 2. this.initTextBox is not a function Which version of qooxdoo do you use? As I mentioned in my first mail the "deferredInit" key is only available with the latest versions of the "legacy_0_7_x" branch or the trunk. It is not available it the latest 0.7.3 release.
> So i'm totally clueless now, how to solve these problems. I can use the > class as i defined first, and it seems to me it works correctly, but still a > i wish to know how to use the initMyProperty() function. (I read the whole > qooxdoo manual > (http://qooxdoo.org/documentation/0.7<http://qooxdoo.org/documentation/0.7#properties>) > not just the property part) If you want to init a property with a complex type and do not want to share the property between multiple instances you can use the following code: --snip-- construct : function() { this.base(arguments); this.initTextBox(new qx.ui.form.TextField()); }, properties : { textBox : { deferredInit : true, check : "qx.ui.form.TextField" // the check is not mandatory } } --snip-- cheers, Alex ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
