Hi Tobias,

try this: at the top of your "myapp.Forward" js file include this compiler helper comment:

/* ************************************************************************

#require(myapp.modules.reader.Settings)

************************************************************************ */

hope this helps.

Tobias Koller (GERMO GmbH) schrieb:

Hi list,

When I make the build-version of my application, the make-file doesn't include all classes.

I tested it and I know why!

Take a look at my page:

--------------

qx.Class.define("myapp.Forward",

{

                extend : qx.application.Gui,

                construct : function(dest, id){

                               this.base(arguments);

                               this.pages[0] = new Object();

                               this.createList();

                               this.go(dest, id);

                },

                members : {

                               pages : new Array(),

                               createList : function(){

this.pages[0]["mainAdmin1"] = "myapp.modules.reader.Settings";

this.pages[0]["subAdmin1"] = "myapp.modules.reader.Settings ";

this.pages[0]["subAdmin2"] = "myapp.modules.reader.Settings ";

this.pages[0]["subAdmin2_2"] = "myapp.modules.reader.Settings";

this.pages[0]["subAdmin3"] = "myapp.modules.reader.Settings";

                               },

                               createDest : function(id){

return "new "+ this.pages[0][id]+"('"+id+"')"

                               },

                               go : function(destination, id){

//alert(destination + " " + id + " "+this.pages[0][id]);

                                               //seite wird weitergeladen

                                               destination.removeAll();

destination.add(eval(this.createDest( id )));

} }
});

The problem is, that the classes I want to call are just stored in strings. And when I run the application "myapp.modules.reader.Settings" is not defined cause the build didn't include this class.

When I add this (just to test it):

new myapp.modules.reader.Settings(id);

then everything works fine.

By the way: is this bad style of programming? If so, how would you program this?

If not, how can I tell the make-file to include all classes?

Thanks!

Tobias

------------------------------------------------------------------------

-------------------------------------------------------------------------
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

--
Mit freundlichen Grüßen
Dietrich Streifert
--
Visionet GmbH
Firmensitz: Am Weichselgarten 7, 91058 Erlangen
Registergericht: Handelsregister Fürth, HRB 6573
Geschäftsführer: Stefan Lindner



-------------------------------------------------------------------------
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

Reply via email to