Is tabStaticPage a string? If so are you sure it is deffinately correct?
Also it would be better to put the #use at the top of the file rather
than inside the class
HTH,
Matt
Andreas G. wrote:
> hello fabian, thank you for replying.
>
> i did it like so:
>
> qx.Class.define("qxgui.parser.Section",
> {
> /*
> #use(qxgui.staticpages.*)
> */
>
> extend: qx.core.Object,
>
> ...
>
> }
>
> and this is how i use it ( with - for example - "qxgui.staticpages.Status"
> it works ):
>
> var tmpClass = qx.Class.getByName( "qxgui.staticpages." + tabStaticPage );
> var staticPage = new tmpClass;
>
> and firebug tells this:
>
> tmpClass is not a constructor
> var staticPage = new tmpClass;
>
>
> cheers
>
>
> Fabian Jakobs wrote:
>> Hi Andreas,
>>
>> it should work if the class is there. I suspect that the generator
>> doesn't detect the class you need as dependency and doesn't include the
>> class. You can manually add such a dependency by adding.
>>
>> /*
>> #use(qxgui.staticpages.*)
>> */
>>
>> to the class header.
>>
>> Best Fabian
>>> hello there.
>>>
>>> i need to load classes dynamically. my first approach was this:
>>>
>>> var tmpClass = qx.Class.getByName( "qxgui.staticpages." + tabStaticPage
>>> );
>>>
>>> but - as expected - it didnt work.
>>>
>>> any suggestions?
>>>
>>> cheers
>>>
>>
>> --
>> Fabian Jakobs
>> JavaScript Framework Developer
>>
>> 1&1 Internet AG - Web Technologies
>> Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
>> Telefon: +49 721 91374-6784
>> [email protected]
>>
>> Amtsgericht Montabaur / HRB 6484
>> Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
>> Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr.
>> Oliver Mauss, Jan Oetjen
>> Aufsichtsratsvorsitzender: Michael Scheeren
>>
>>
>> ------------------------------------------------------------------------------
>> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
>> looking to deploy the next generation of Solaris that includes the latest
>> innovations from Sun and the OpenSource community. Download a copy and
>> enjoy capabilities such as Networking, Storage and Virtualization.
>> Go to: http://p.sf.net/sfu/opensolaris-get
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel