Hi Alexander,
* Alexander Back <[email protected]> [090305 10:42]:
> On Thursday 05 March 2009 Gereon A. Frey wrote:
> > It's even easier. Just create a standard skeleton app (using
> > create-application -n <name> without the inline stuff) and add
> > var t = qx.ui.treevirtual.TreeVirtual(['test']);
> > to Application.js. After generating I can reproduce the described effect
> > on MacOS and Linux using 0.8.1 and latest 0.8.2-pre. I'm quite sure that
> > it is not related to caching or some qooxdoo version mixing (usage of
> > different Browser on different machines on different operating systems).
> I could not reproduce this issue. I've just created an inline application
> which is using a treeVirtual widget - without a problem.
I just wonder how I messed up the environments on those machines I
tested this on.
Maybe I should try to better describe what the problem is instead of
hoping that someone else would see the effect:
- while loading the page a TreeVirtual is created.
- TreeVirtual creates the SimpleTreeDataCellRenderer
- in the defer method of SimpleTreeDataCellRenderer the following is
called
qx.theme.manager.Meta.getInstance().initialize();
- in initialize the following block is called
theme = setting.get("qx.theme");
if (theme)
{
obj = qx.Theme.getByName(theme);
if (!obj) {
throw new Error("The theme to use is not available: " + theme);
}
this.setTheme(obj);
}
- theme is set to 'example.theme.Theme' (or whatever your application
is named after). This theme is not found in qx.Theme.$$registry and
therefore null is returned by getByName ... what results in the shown
error.
My question now is: the $$registry is filled while loading the different
theme things (I don't understand the details), but why is
example.theme.Theme excluded? Who would be responsible for loading the
file? Why is it visible in the list of "downloaded" files? Is it loaded
to late (why?)?
> Did you really cleared the cache using "./generate.py distclean"?
No I didn't, but would this be required for a brand new project?
> At last a little hint: you forget the "new" operator in your example above :)
You are right of course ...
Cheers,
Gereon
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel