Hi John,
John Spackman wrote:
Hi,
I had a problem this morning where I would get "qx.locale.Manager is
undefined" error at runtime with a source compile which went away with
a source-all compile (I didn't try the build version). This came down
to trying to instantiate a DateFormat as a static; my code is:
[...snip...]
statics: {
__DF: *new qx.util.format.DateFormat("YYYY/MM/dd
HH:mm:ss");*
},
[...snip...]
I've fixed it by doing it in the constructor (i.e. if __DF is null)
but IMHO that's not ideal.
Am I doing something wrong here? Is there a specific statics
initialiser block I should be using?
No, you hit a, um, limitation of the dependency tracking (s.
http://bugzilla.qooxdoo.org/show_bug.cgi?id=1455). In short, run time
dependencies of static initializers are not tracked (as it would
currently run into circular dependencies in the framework).
You can try using #require in your class to force proper inclusion of
those dependencies.
HTH,
T.
Thanks
John
------------------------------------------------------------------------
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel