-
9 Apr 2012 6:24 AM #51
@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.
-
10 Apr 2012 12:38 AM #52
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.
-
10 Apr 2012 6:30 AM #53
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.
-
10 Apr 2012 7:02 AM #54
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:
index_build.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.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 -->
I've written my own bootstrapping process to pull in CSS etc, but that's essentially what's going on.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>Product Architect
Altus Ltd.
-
10 Apr 2012 8:08 AM #55
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.
-
11 Apr 2012 2:12 AM #56
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.
-
11 Apr 2012 3:05 AM #57
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) ?
-
11 Apr 2012 4:23 AM #58
Oh.... and not only the "requires" statement, when some controller reference some view, the view should be declared first ...
-
11 Apr 2012 6:46 AM #59
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.
-
11 Apr 2012 10:37 AM #60
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):What am I missing?Code:Ext.application({ name: 'HelloExt', launch: function() { Ext.create('Ext.container.Viewport', { layout: 'fit', items: [ { title: 'Hello Ext', html : 'Hello! Welcome to Ext JS.' } ] }); } });
NEVERMIND - I figured it out...
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote