-
24 Feb 2011 6:51 PM #1
Dynamic Loading?
Dynamic Loading?
I'm currently using bootstrap.js which loads ext-debug-all. I'd like to instead try out the dynamic loading feature. Can somebody point me in the right direction?
-
24 Feb 2011 9:56 PM #2Sencha - Sencha Touch Dev Team
- Join Date
- Jul 2009
- Location
- Palo Alto, California
- Posts
- 469
- Vote Rating
- 9
We're in the midst of preparing a thorough guide on this. There are important information and best practices to take note in order to avoid any downside of this approach, so I strongly suggest that you wait for a little while more. The tutorial should be out soon before the final release of Ext 4.
Sencha Touch Lead Architect
-
25 Feb 2011 7:30 AM #3
In that case, can you help me understand this error message that cropped up when I moved to pr2?
[Ext.Loader][not enabled] Missing required class: gridpanel
From:
Everything still seems to work, but I'd like to identify the problem and fix it.PHP Code:4505 // If the dynamic dependency feature is not being used, throw an error
4506 // if the dependencies are not defined
4507 if (!this.config.enabled) {
4508 if (classNames.length > 0) {
4509 throw new Error("[Ext.Loader][not enabled] Missing required class" + ((classNames.length > 1) ? "es" : "") +
4510 ": " + classNames.join(', '));
4511 }
4512 }
Thanks,
Michael
-
25 Feb 2011 10:15 AM #4Sencha - Sencha Touch Dev Team
- Join Date
- Jul 2009
- Location
- Palo Alto, California
- Posts
- 469
- Vote Rating
- 9
It looks like you have a typo in the class name you're trying to instantiate ('gridpanel'). This won't work:
It should be either one of these instead:Code:Ext.create('gridpanel'); // 'gridpanel' is neither a valid class name nor a valid alias
Code:new Ext.grid.GridPanel; Ext.create('Ext.grid.GridPanel'); // By full class name Ext.create('widget.gridpanel'); // By alias Ext.widget('gridpanel'); // By xtype, recommendedSencha Touch Lead Architect
-
27 Feb 2011 11:38 AM #5
The source of the problem was some Ext.extends that I was still using. I guess something changed between pr1 and pr2 to alert/break on this legacy code. I changed those to Ext.define and the errors stopped.
Michael
Similar Threads
-
Dynamic Loading My Libraries
By sg707 in forum Ext: DiscussionReplies: 1Last Post: 16 Feb 2011, 3:02 PM -
Dynamic Langauge Loading
By pander in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 2 Aug 2010, 3:28 AM -
Dynamic loading of components
By deanna in forum Community DiscussionReplies: 3Last Post: 13 Sep 2009, 11:20 AM -
Dynamic loading
By HSomb in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 4 Jan 2009, 6:23 AM


Reply With Quote