Hi,

I build a custom qx.js by using:

generator.py 
            --cache-directory ${dir.qooxdoo}/frontend/framework/.cache
            --class-path ${dir.qooxdoo}/frontend/framework/source/class
            --class-uri /
            --class-path extraFiles
            --class-uri /
            --generate-compiled-script
                --use-setting=qx.resourceUri:/qooxdoo/
                --use-setting=qx.minLogLevel:600
                --use-setting=qx.application:Apl
            --add-new-lines
                        --compiled-script-file qx.js

I have a simple page with just a button:
        <html>
            <head>
                <title>Test de Qooxdoo (qx.js)</title>
                <script type='javascript' src="/qx-dir.js"></script>
                <script type='javascript'>
qx.Class.define('Apl', {
        extend: qx.application.Gui,
        members: {
                main : function() {
                    this.base(arguments);
                    var bot = new qx.ui.form.Button("Picame");
                        bot.setLocation(150, 150);
                        bot.addToDocument();
                        bot.addEventListener("execute", function(e) {
                alert("Me has picado");
            });
                }
        }
});
                </script>
            </head>
            <body/>
        </html>


Here is the error:


Firebug is disabled

Enable Firebug
Enable Firebug for this web site
clazz is not a constructor
[Break on this error] this.setApplication(new clazz(this));
qx.js (line 2668)
clazz is not a constructor
[Break on this error] this.setApplication(new clazz(this));
qx.js (line 2668)
The configuration key "extend" in class "Apl" is not allowed!
[Break on this error] null
qx.js (line 1026)
The configuration key "extend" in class "Apl" is not allowed!
[Break on this error] for(var key in config){if(!allowed[key]){throw new
Error('The configuration key ...
qx.js (line 1026)
qx.Class.getByName(qx.core.Setting.get("qx.logAppender")) is not a
constructor
[Break on this error] null
qx.js (line 2975)
qx.Class.getByName(qx.core.Setting.get("qx.logAppender")) is not a
constructor
[Break on this error] statics.ROOT_LOGGER.addAppender(new
(qx.Class.getByName(qx.core.Setting.get("qx....
qx.js (line 2975)
GET
file:///d:/aplicaciones/rds/david/ima/serv/3os/qooxdoo/frontend/application/apiviewer/source/script/apidata.js?nocache=1181223954800
(328ms)XmlHttpTransport.... (line 279)
GET
file:///d:/aplicaciones/rds/david/ima/serv/3os/qooxdoo/frontend/application/apiviewer/source/script/qx.Class.js?nocache=1181223955815
(391ms)XmlHttpTransport.... (line 279)
ipsclass is not a constructor
[Break on this error] //<![CDATA[
search (line 2174)
ipsclass is not a constructor
[Break on this error] //<![CDATA[
search (line 2174)
image_resizer is not defined
[Break on this error] <script type='text/javascript'>
search (line 2200)
image_resizer is not defined
[Break on this error] <script type='text/javascript'>
search (line 2200)
urchinTracker is not defined
[Break on this error] _uacct = "UA-1290217-1";
search (line 2215)
urchinTracker is not defined
[Break on this error] _uacct = "UA-1290217-1";
search (line 2215)
ipsmenu is not defined
[Break on this error] <script type="text/javascript">
search (line 2251)
ipsmenu is not defined
[Break on this error] <script type="text/javascript">
search (line 2251)
clazz is not a constructor
[Break on this error] this.setApplication(new clazz(this));
qx.js (line 2668)
clazz is not a constructor
[Break on this error] this.setApplication(new clazz(this));
qx.js (line 2668)
The configuration key "extend" in class "Apl" is not allowed!
[Break on this error] null
qx.js (line 1026)
The configuration key "extend" in class "Apl" is not allowed!
[Break on this error] for(var key in config){if(!allowed[key]){throw new
Error('The configuration key ...
qx.js (line 1026)
qx.Class.getByName(qx.core.Setting.get("qx.logAppender")) is not a
constructor
[Break on this error] statics.ROOT_LOGGER.addAppender(new
(qx.Class.getByName(qx.core.Setting.get("qx....
qx.js (line 2975)
qx.Class.getByName(qx.core.Setting.get("qx.logAppender")) is not a
constructor
[Break on this error] statics.ROOT_LOGGER.addAppender(new
(qx.Class.getByName(qx.core.Setting.get("qx....
qx.js (line 2975)

The button isn't shown.

Here are the errors:



If I use the source version I get these errors and the button IS shown.

clazz is not a constructor
[Break on this error] this.setApplication(new clazz(this));
qx.js (line 2668)
clazz is not a constructor
[Break on this error] this.setApplication(new clazz(this));
qx.js (line 2668)
The configuration key "extend" in class "Apl" is not allowed!
[Break on this error] null
qx.js (line 1026)
The configuration key "extend" in class "Apl" is not allowed!
[Break on this error] for(var key in config){if(!allowed[key]){throw new
Error('The configuration key ...
qx.js (line 1026)
qx.Class.getByName(qx.core.Setting.get("qx.logAppender")) is not a
constructor
[Break on this error] null
qx.js (line 2975)
qx.Class.getByName(qx.core.Setting.get("qx.logAppender")) is not a
constructor
[Break on this error] statics.ROOT_LOGGER.addAppender(new
(qx.Class.getByName(qx.core.Setting.get("qx....
qx.js (line 2975)
GET
file:///d:/aplicaciones/rds/david/ima/serv/3os/qooxdoo/frontend/application/apiviewer/source/script/apidata.js?nocache=1181223954800
(328ms)XmlHttpTransport.... (line 279)
GET
file:///d:/aplicaciones/rds/david/ima/serv/3os/qooxdoo/frontend/application/apiviewer/source/script/qx.Class.js?nocache=1181223955815
(391ms)XmlHttpTransport.... (line 279)
ipsclass is not a constructor
[Break on this error] //<![CDATA[
search (line 2174)
ipsclass is not a constructor
[Break on this error] //<![CDATA[
search (line 2174)
image_resizer is not defined
[Break on this error] <script type='text/javascript'>
search (line 2200)
image_resizer is not defined
[Break on this error] <script type='text/javascript'>
search (line 2200)
urchinTracker is not defined
[Break on this error] _uacct = "UA-1290217-1";
search (line 2215)
urchinTracker is not defined
[Break on this error] _uacct = "UA-1290217-1";
search (line 2215)
ipsmenu is not defined
[Break on this error] <script type="text/javascript">
search (line 2251)
ipsmenu is not defined
[Break on this error] <script type="text/javascript">
search (line 2251)
qx.Class.getByName(qx.core.Setting.get("qx.logAppender")) is not a
constructor
[Break on this error] statics.ROOT_LOGGER.addAppender(new
(qx.Class.getByName(qx.core.Setting.get(...
Logger.js (line 511)
qx.Class.getByName(qx.core.Setting.get("qx.logAppender")) is not a
constructor
[Break on this error] statics.ROOT_LOGGER.addAppender(new
(qx.Class.getByName(qx.core.Setting.get(...
Logger.js (line 511)
qx.ui.popup has no properties
[Break on this error] extend : qx.ui.popup.Popup,
Menu.js (line 32)
qx.ui.popup has no properties
[Break on this error] extend : qx.ui.popup.Popup,
Menu.js (line 32)

Any help will be greatly appreciated.
-- 
View this message in context: 
http://www.nabble.com/qx.Class.getByName%28%29-not-a-constructor-tf3878516.html#a11011097
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


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