On Wed, Oct 8, 2008 at 10:19 AM, thron7 <[EMAIL PROTECTED]> wrote:

> it might be that you are missing the qooxdoo setting for qx.theme. Are
> you including the application.json in your config? And are you building
> on its jobs? If so, your jobs would inherit the "settings" key. Try
> copying over the common/settings key from base.json and see what it
> does. Alex was struggling with the same issue and solved it, but he is
> on vacation currently.

Ok, I dug deeper into the issue and found out what is happening. The
thing is that my custom theme classes are only loaded after the
theme.manager.Meta.initialize method is called. I've found a simple
workaround, which might be the correct fix: I simply modified my
config.json to read:

  "jobs" :
  {
    "common" :
    {
      "include" :
      [
        "${QXTHEME}",
        "${APPLICATION}.Application"
      ],

instead of the (generated stuff from migration script):

      "include" :
      [
        "${APPLICATION}.Application",
        "${QXTHEME}"
      ],

*IF* this is the correct fix, it should be applied to at least
tool/data/config/base.json and
component/skeleton/migration/config.tmpl.json.

> Gaetan de Menten wrote:
>> I'm using an "extended" modern theme for my application, that is I'm
>> inheriting from the theme and adding some states ("invalid", ...) to
>> some widgets. It works fine in source form, but I systematically get
>> the following exception as the first message in my console:
>>
>> The theme to use is not available: pinte.theme.Common     Meta.js (line 108)
>>
>> While my theme seem to work flawlessly (except from this error
>> message) in source form, the error seem fatal in "build" form. Any
>> idea what might be causing this?
>>
>> My config.json does contain those lines:
>> ...
>> "QXTHEME"      : "pinte.theme.Common",
>> ...
>>
>>  "include" :
>>       [
>>         "${APPLICATION}.Application",
>>         "${QXTHEME}"
>>       ],

-- 
Gaƫtan de Menten
http://openhex.org

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to