1. #51
    Sencha User aw1zard2's Avatar
    Join Date
    Sep 2009
    Location
    Dallas, Texas
    Posts
    575
    Vote Rating
    32
    aw1zard2 has a spectacular aura about aw1zard2 has a spectacular aura about

      0  

    Default


    @bax1989

    Confirm that the ext js components are in the app-all.js.
    If so don't load ext.js.
    app-all.js should have everything.
    ext.js has dynamic loading turned on so it will still download things if you have it in there.

    Let me know if you run into anything else.

    Also if you edit the jsb3 file before you build and put in your config.js to be included in the app-all.js you would only need 1 file.

  2. #52
    Sencha User
    Join Date
    Mar 2012
    Posts
    12
    Vote Rating
    1
    bax1989 is on a distinguished road

      0  

    Default Thanks

    Thanks


    If I don't load ext.js I get "Ext is not defined".
    I see in resources AbstractCard, I can't find out AbstractCard in app-all.js neither in all-classes.js.
    For example Observable.js is declared in app-all.js and Ext does not download it.
    Having this, I think the porblem is in resolving all dependencies when building all-classes.js and not in runtime.

  3. #53
    Sencha User aw1zard2's Avatar
    Join Date
    Sep 2009
    Location
    Dallas, Texas
    Posts
    575
    Vote Rating
    32
    aw1zard2 has a spectacular aura about aw1zard2 has a spectacular aura about

      0  

    Default


    The easiest way I used the build tools was remove all the ext components and just have it bundle my own js files.
    Then just used ext-all.js and my own app-all.js.
    Try instead of ext.js using ext-core.js.

    See if everything comes up with that if so can add that into the all-classes.js to bundle everything into one.

  4. #54
    Ext JS Premium Member westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    855
    Vote Rating
    38
    westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough

      0  

    Default


    I use ext.js for my built version, ext-dev.js for my version to build against, and ext-all-debug.js for development.

    Some simplified snippets from my HTML...

    index_dev.html:
    Code:
        <!-- Ext includes -->
        <script type="text/javascript" src="lib/Ext/extjs-4.1.0-rc2/ext-all-debug.js"></script>
    
    
        <script type="text/javascript">
            // Set up dynamic class loader
            Ext.Loader.setConfig({
                enabled: true,
                disableCaching: false
            });
        </script>
    
    
        <!-- Application.js includes -->
    index_build.html:
    Code:
        <!-- Ext includes -->
        <script type="text/javascript" src="lib/Ext/extjs-4.1.0-rc2/ext-dev.js"></script>
    
    
        <script type="text/javascript">
            // Set up dynamic class loader
            Ext.Loader.setConfig({
                enabled: true,
                disableCaching: false
            });
        </script>
    
        <!-- Application.js includes -->
    index.html:
    Code:
        <!-- Ext includes -->
        <script type="text/javascript" src="lib/Ext/extjs-4.1.0-rc2/ext.js"></script>
    
    
        <script type="text/javascript">
            // Set up dynamic class loader
            Ext.Loader.setConfig({
                enabled: false,
                disableCaching: false
            });
        </script>
    
        <!-- Include our built JS -->
        <script type="text/javascript" src="app-all.js"></script>
    I've written my own bootstrapping process to pull in CSS etc, but that's essentially what's going on.
    Product Architect
    Altus Ltd.

  5. #55
    Sencha User aw1zard2's Avatar
    Join Date
    Sep 2009
    Location
    Dallas, Texas
    Posts
    575
    Vote Rating
    32
    aw1zard2 has a spectacular aura about aw1zard2 has a spectacular aura about

      0  

    Default


    Yeah sorry I cant give details into what I'm working on.
    I can give a simple description though.
    Currently we have an Architecture app that is our own extends on Ext components which loads first.
    Then we have a Common Architecture app that loads using the Architecture app components to create common "screen layouts".
    Then we get into loading individual zone app's (think of zones as departments so Billing, Purchasing, Inventory, and etc.) which loads and unloads depending on where the end user brings up based on a common menu.

    Right now we have 4 zones finished with about 683 zone apps created. In the end we will have around 2700 zone apps when we get everything finished.

    We also have a common hold area for data needing to be passed between zone apps.

    I can go on for days but I will stop there.

  6. #56
    Sencha User
    Join Date
    Mar 2012
    Posts
    12
    Vote Rating
    1
    bax1989 is on a distinguished road

      0  

    Default


    I put all my ext js files inside one file(allClasses.js) and imported this file and ext-all js, ext-all js script gives me error that it does not find some classes, but they are all present.

  7. #57
    Sencha User
    Join Date
    Mar 2012
    Posts
    12
    Vote Rating
    1
    bax1989 is on a distinguished road

      0  

    Default


    The error occurs because of "requires" statements, it is safe to delete all "requires" statements (I garantee that I'll have all class defined but not in the order that classes which depends on other are defined last) ?

  8. #58
    Sencha User
    Join Date
    Mar 2012
    Posts
    12
    Vote Rating
    1
    bax1989 is on a distinguished road

      0  

    Default


    Oh.... and not only the "requires" statement, when some controller reference some view, the view should be declared first ...

  9. #59
    Sencha User aw1zard2's Avatar
    Join Date
    Sep 2009
    Location
    Dallas, Texas
    Posts
    575
    Vote Rating
    32
    aw1zard2 has a spectacular aura about aw1zard2 has a spectacular aura about

      0  

    Default


    Yeah the order does matter a lot.
    Below is the link discussing the kind of structure I'm following for our MVC.

    http://www.sencha.com/forum/showthre...l=1#post747688

    My arch app is nothing but requires in order I want.
    Then common app handles the rest.

  10. #60
    Sencha Premium Member
    Join Date
    Jan 2012
    Location
    The Woodlands,Tx
    Posts
    6
    Vote Rating
    0
    ericwdunn is on a distinguished road

      0  

    Default


    I am not having fun...

    I moved (uninstalled/reinstalled) the tools 2.0.0 beta to c:\ instead of c:\program files.
    I changed the GenerateJSB.js file as instructed.
    Next cmd line to project .
    ran the create command: sencha create jsb -a index.html -p app.jsb3
    got error:
    [ERROR] Jsb generation failed.
    TypeError: 'null' is not a constructor

    the JS is this (same as in getting Started Guide):
    Code:
    Ext.application({
        name: 'HelloExt',
        launch: function() {
            Ext.create('Ext.container.Viewport', {
                layout: 'fit',
                items: [
                    {
                        title: 'Hello Ext',
                        html : 'Hello! Welcome to Ext JS.'
                    }
                ]
            });
        }
    });
    What am I missing?

    NEVERMIND - I figured it out...