Jim Hunter schrieb:
> Thanks for the reply. I was able to get it to work be using the 
> Application.js file that was supplied with the Quickstart code. If I 
> do not call that file in my Index.htm file, I get the above mentioned 
> behavior (bad), if I simply call Application and only to 
> "this.base(arguments);" then it works. Why? What happens in this 
> simple line of code to make everything else work? So I now load the 
> qooxdoo.js file and Application.js (like the Quickstart application 
> had) and the only thing in my Application.js is:
>
> qx.Class.define("Application",
> { 
>   Extend : qx.application.Gui,
>   members:
>   {
>     main : function()
>     {
>       this.base(arguments);
>     }
>   }
> });
>
>
> So simple yet it is the glue that makes Table work. Go figure...
This actually makes sense. The qooxdoo init process needs a an instance 
of qx.application.Gui to initialize the widget system. It finds the 
class to instantiate by reading the setting "qx.application". If no such 
class is configured or the class does not exist, strange things can 
happen (As you have seen). This little script in the quickstart 
index.html tells qoxdoo to use an instance of the class "Application" as 
main application class:

    <script type="text/javascript">
      qxsettings = { "qx.application" : "Application" };
    </script>

Normally this is handled by the build system.

Best Fabian
>
> Thanks,
> Jim
>
>
>
> On Fri, Mar 7, 2008 at 1:00 AM, Fabian Jakobs <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Hi Jim,
>     > I am using the QuickStart shell and creating a test bed for some new
>     > development of controls. I have NO files in my class folder, I am
>     > simply trying to get a complete build of the qooxdoo code so that I
>     > can begin to add onto it. I have these settings in my MAKEFILE
>     >
>     > APPLICATION_COMPLETE_SOURCE = true
>     > APPLICATION_COMPLETE_BUILD = true
>     >
>     > and it builds fine and I get a nice large qx.js file. Here is
>     where it
>     > gets odd. I have the latest code from the legacy 0.7 branch and
>     > according to Tortoise I'm at revision 12243, but my qx.js file
>     reports
>     > 0.7.4-pre (r11356), quite a difference (even if a do a MAKE
>     DISTCLEAN
>     > BUILD, I get the same results). Secondly, I can load the qx.js file
>     > into a web page and I get no errors, just some typical debug
>     messages.
>     > Using FireBug, I can create tm = new qx.ui.table.model.Simple()
>     and it
>     > works fine. When I try and create a Table doing tb= new
>     > qx.ui.table.Table(tm) I get no confirmation from Firebug that it was
>     > created. If I type tb in the FireBug evaluation line it says "tb is
>     > not defined". It won't let me create a table. I even tried putting
>     > some simple code into the Index.htm file to create a table and I get
>     > the same results. I can create the model but not the table (I
>     did full
>     > tests loading actual data into the model before creating the
>     table and
>     > it gives the same results). Now, when I close out the browser I
>     get a
>     > popup Javascript message that states:
>     >
>     > "WARN: Could not dispose: [object qx.ui.table.Table]: Error:
>     Property
>     > selectionModel of an instance of qx.ui.table.Table is not (yet)
>     ready!"
>     >
>     > So, what is my basic problem? I have never had such a time with this
>     > before. I have been messing with this all day.
>     >
>     > Thanks
>     >
>     > Jim Hunter
>     This is really strange. We do something similar for the demos in the
>     demo browser of qooxdoo 0.7. We create a single JavaScript file with
>     all qooxdoo classes and I have never seen such a behaviour here. Could
>     you send me your test project, so we can reproduce the problem?
>     Just the
>     skeleton with the makefiles and a small javascript, which creates
>     the table?
>
>     Best Fabian
>
>
>     --
>     Fabian Jakobs
>     JavaScript Framework Developer
>
>     1&1 Internet AG
>     Brauerstraße 48
>     76135 Karlsruhe
>
>     Amtsgericht Montabaur HRB 6484
>
>     Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich,
>     Andreas Gauger, Thomas Gottschlich, Matthias Greve, Robert
>     Hoffmann, Markus Huhn, Achim Weiss
>     Aufsichtsratsvorsitzender: Michael Scheeren
>
>
>     -------------------------------------------------------------------------
>     This SF.net email is sponsored by: Microsoft
>     Defy all challenges. Microsoft(R) Visual Studio 2008.
>     http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>     _______________________________________________
>     qooxdoo-devel mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
>
> -- 
> Jim Hunter
>
> DAILY THOUGHT: SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD
> FOR  ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE 
> STAIRS
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>   


-- 
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, 
Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to