Dietrich Streifert schrieb:
> Hello List,
>
> I have a widget with a property called messageIcons which is defined as
> follows:
>
> messageIcons :
> {
> check : "Object"
> }
>
> As documented in:
>
> http://qooxdoo.org/documentation/0.7/defining_properties?s=properties
>
> I'm using in the constructor the initializer method of the property to
> set an initial value:
>
> this.initMessageIcons({
> info : "icon/16/actions/documentinfo.png",
> error : "icon/16/actions/stop.png",
> warning : "icon/16/actions/status_unknown.png",
> ok : 'icon/16/status/ok.png'
> });
>
> At instanciation time of the widget the following error message is
> displayed:
>
> this.initMessageIcons is not a function
> http://nra/nra/app-source/class/qx/visionet/ui/dialog/MessageDialog.js
> Line 52
>
> What is wrong with my code?
>
> Any help is welcome.
>
The property methods are only available after the constructor of
qx.core.Object is called. If you place your init after the "this.base"
call everything should work.
Best Fabian
--
Fabian Jakobs
JavaScript Framework Developer
1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe
Amtsgericht Montabaur HRB 6484
Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger,
Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel