<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/" 
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 
	xmlns:admin="http://webns.net/mvcb/" 
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/" 
	xmlns:atom="http://www.w3.org/2005/Atom">
	
	<channel>
	
		<title>Using Ext Loader for Your Application</title>
		<link>http://www.sencha.com/blog/using-ext-loader-for-your-application</link>
		<description>Today, we’ll be looking at creating a small application that makes use of this new class Loader system, exercising the dependency management system.  Along the way, we’ll discuss various configuration options for the Ext Loader system.</description>
		<dc:language>en-us</dc:language>
		<dc:creator>jay@moduscreate.com</dc:creator>
		<dc:rights>Copyright 2011</dc:rights>
		<dc:date>2011-06-27T19:00:47+00:00</dc:date>
		<admin:generatorAgent rdf:resource="http://expressionengine.com/" />
		<atom:link href="http://www.sencha.com/blog/comments-rss/985" rel="self" type="application/rss+xml" />
  
		
  
		<item>
      <title>Comment by Silan</title>
      <description>Hi Jay or anyone that may know,
When I read this post, I feel everything was cristal clear&#8212;excellent work. So I decided to use the codes here and try to make it loaded by the EXT demo portal. In other words, I tried to make your &#8216;UserEditorWindow&#8217; show as a portlet on the EXT JS 4 demo portal.

After I put everything together, and changed the demo portal&#8217;s &#8220;portlet&#45;3&#8221; to load content as
items: [Ext.create(&#8216;MyApp.views.UserEditorWindow&#8217;)],
The portlet bar was shown on the portal, but had no content,

Could you please let me know if this should work with portal as well, and if so, how? 
Thanks</description>
      <content:encoded><![CDATA[<p>Hi Jay or anyone that may know,<br />
When I read this post, I feel everything was cristal clear&#8212;excellent work. So I decided to use the codes here and try to make it loaded by the EXT demo portal. In other words, I tried to make your &#8216;UserEditorWindow&#8217; show as a portlet on the EXT JS 4 demo portal.</p>

<p>After I put everything together, and changed the demo portal&#8217;s &#8220;portlet-3&#8221; to load content as<br />
items: [Ext.create(&#8216;MyApp.views.UserEditorWindow&#8217;)],<br />
The portlet bar was shown on the portal, but had no content,</p>

<p>Could you please let me know if this should work with portal as well, and if so, how? <br />
Thanks</p>

]]></content:encoded>
      <pubDate>Tue, 02 Aug 2011 20:14 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:24798#date:20:14</guid>
    </item>
  
		<item>
      <title>Comment by Aaron Stagl</title>
      <description>ext.js:&amp;nbsp; is this really a minified version of ext&#45;debug or ext&#45;all?</description>
      <content:encoded><![CDATA[<p>ext.js:&nbsp; is this really a minified version of ext-debug or ext-all?</p>]]></content:encoded>
      <pubDate>Mon, 01 Aug 2011 18:30 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:24718#date:18:30</guid>
    </item>
  
		<item>
      <title>Comment by Bhagya</title>
      <description>HI,

Its giving weird results when it is  integrate ExtJs 4 with share point webpart.How to over come from these problem? 
2.How to overide Extjs4 CSS to Sharepoint CSS dynamically? please help</description>
      <content:encoded><![CDATA[<p>HI,</p>

<p>Its giving weird results when it is  integrate ExtJs 4 with share point webpart.How to over come from these problem? <br />
2.How to overide Extjs4 CSS to Sharepoint CSS dynamically? please help</p>]]></content:encoded>
      <pubDate>Wed, 06 Jul 2011 13:37 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23793#date:13:37</guid>
    </item>
  
		<item>
      <title>Comment by Justin Noel</title>
      <description>I complained above about the lack of an MVC CRUD example.&amp;nbsp; I&#8217;ve know posted my own example.&amp;nbsp; It might not be any good, but it is at least a starting point. 

I&#8217;d love feedback on it.

http://www.sencha.com/forum/showthread.php?139433&#45;Ext&#45;MVC&#45;CRUD&#45;Demo&amp;amp;p=622323</description>
      <content:encoded><![CDATA[<p>I complained above about the lack of an MVC CRUD example.&nbsp; I&#8217;ve know posted my own example.&nbsp; It might not be any good, but it is at least a starting point. </p>

<p>I&#8217;d love feedback on it.</p>

<p><a href="http://www.sencha.com/forum/showthread.php?139433-Ext-MVC-CRUD-Demo&amp;p=622323">http://www.sencha.com/forum/showthread.php?139433-Ext-MVC-CRUD-Demo&amp;p=622323</a></p>]]></content:encoded>
      <pubDate>Tue, 05 Jul 2011 16:10 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23769#date:16:10</guid>
    </item>
  
		<item>
      <title>Comment by xiaochao</title>
      <description>Can the Loader System load user css files? If it can, would you please give some sample code?

Thanks and Best Regards!</description>
      <content:encoded><![CDATA[<p>Can the Loader System load user css files? If it can, would you please give some sample code?</p>

<p>Thanks and Best Regards!</p>]]></content:encoded>
      <pubDate>Mon, 04 Jul 2011 02:17 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23731#date:02:17</guid>
    </item>
  
		<item>
      <title>Comment by oldroy</title>
      <description>I don&#8217;t quite understand why I would want the loader involved in much of anything. If we are wanting to load our app and then just swap data back and forth &#45; then why not load it all at once?.....if the loader wasn&#8217;t so slow&#8230;.well maybe&#8230;..but&#8230;.damn&#8230;...it&#8217;s&#8230;...s&#8230;..lo&#8230;....w&#8230;.....

I absolutely agree about the need for more MVC examples. I chuckle when I see guys who can&#8217;t provide an MVC example belittle someone who is simply asking for an example. I mean&#8230;..what&#8217;s all the hype about the latest greatest MVC pattern to be used with extjs4 if not even the wizards can provide a working example?

https://github.com/lucassus/extjs4&#45;account&#45;manager

Look at the above link for a full CRUD/mvc example with code that works. It&#8217;s basic&#8230;.and it looks like the guy just finished the unfinished non&#45;working example from the API docs&#8230;..but it works&#8230;.....and it&#8217;s rails specific&#8230;..for those of us from a rails background.

I&#8217;ve been trying to adapt his pattern to a dual&#45;grid example where a child grid loads records based on parent record chosen in parent grid. As soon as I&#8217;ve got it working I&#8217;ll put in on github and post it back to the forums.

Wish there were more examples out there&#8230;.....but I guess examples will have to be provided by the community.</description>
      <content:encoded><![CDATA[<p>I don&#8217;t quite understand why I would want the loader involved in much of anything. If we are wanting to load our app and then just swap data back and forth - then why not load it all at once?.....if the loader wasn&#8217;t so slow&#8230;.well maybe&#8230;..but&#8230;.damn&#8230;...it&#8217;s&#8230;...s&#8230;..lo&#8230;....w&#8230;.....</p>

<p>I absolutely agree about the need for more MVC examples. I chuckle when I see guys who can&#8217;t provide an MVC example belittle someone who is simply asking for an example. I mean&#8230;..what&#8217;s all the hype about the latest greatest MVC pattern to be used with extjs4 if not even the wizards can provide a working example?</p>

<p><a href="https://github.com/lucassus/extjs4-account-manager">https://github.com/lucassus/extjs4-account-manager</a></p>

<p>Look at the above link for a full CRUD/mvc example with code that works. It&#8217;s basic&#8230;.and it looks like the guy just finished the unfinished non-working example from the API docs&#8230;..but it works&#8230;.....and it&#8217;s rails specific&#8230;..for those of us from a rails background.</p>

<p>I&#8217;ve been trying to adapt his pattern to a dual-grid example where a child grid loads records based on parent record chosen in parent grid. As soon as I&#8217;ve got it working I&#8217;ll put in on github and post it back to the forums.</p>

<p>Wish there were more examples out there&#8230;.....but I guess examples will have to be provided by the community.</p>]]></content:encoded>
      <pubDate>Thu, 30 Jun 2011 22:00 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23655#date:22:00</guid>
    </item>
  
		<item>
      <title>Comment by JeremyS</title>
      <description>Is it possible that it is necessary to have a subfolder like

js/
&#45;&amp;gt;MyApp/
&amp;nbsp;  &#45;&amp;gt;views/
&amp;nbsp;  &#45;&amp;gt;controller/
&amp;nbsp;  ....

to realize namespaces?

Cause tried something like this

Ext.Loader.setPath(&#8216;incbszdb&#8217;, &#8216;static/js&#8217;);


js/
 &#45;&amp;gt;views/
 &#45;&amp;gt;controller/
 ....

and the app said &#8220;Namespace not found&#8230;&#8221;</description>
      <content:encoded><![CDATA[<p>Is it possible that it is necessary to have a subfolder like</p>

<p>js/<br />
-&gt;MyApp/<br />
&nbsp;  -&gt;views/<br />
&nbsp;  -&gt;controller/<br />
&nbsp;  ....</p>

<p>to realize namespaces?</p>

<p>Cause tried something like this</p>

<p>Ext.Loader.setPath(&#8216;incbszdb&#8217;, &#8216;static/js&#8217;);</p>

<p><br />
js/<br />
 -&gt;views/<br />
 -&gt;controller/<br />
 ....</p>

<p>and the app said &#8220;Namespace not found&#8230;&#8221;</p>

]]></content:encoded>
      <pubDate>Wed, 29 Jun 2011 15:22 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23629#date:15:22</guid>
    </item>
  
		<item>
      <title>Comment by siteslave</title>
      <description>It very slow.</description>
      <content:encoded><![CDATA[<p>It very slow.</p>]]></content:encoded>
      <pubDate>Wed, 29 Jun 2011 07:33 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23605#date:07:33</guid>
    </item>
  
		<item>
      <title>Comment by Alex Betz</title>
      <description>@Justin Noel. Thank you for spelling it out. This is exactly the reason why I have trouble to adopt ExtJS for my purposes. My gut feeling tells me that ExtJS is the way to go. I have no trouble incorporating individual pieces, but simply cannot jump that final, but crucial hurdle. One less paying customer (that would be me) for Sencha until I can see a best practice example of a proper &#8216;real world app&#8217; as Justin described. It doesn&#8217;t have to be huge or complicated, but it should contain ALL the parts required to do it and hints regarding how it can be extended.</description>
      <content:encoded><![CDATA[<p>@Justin Noel. Thank you for spelling it out. This is exactly the reason why I have trouble to adopt ExtJS for my purposes. My gut feeling tells me that ExtJS is the way to go. I have no trouble incorporating individual pieces, but simply cannot jump that final, but crucial hurdle. One less paying customer (that would be me) for Sencha until I can see a best practice example of a proper &#8216;real world app&#8217; as Justin described. It doesn&#8217;t have to be huge or complicated, but it should contain ALL the parts required to do it and hints regarding how it can be extended.</p>]]></content:encoded>
      <pubDate>Wed, 29 Jun 2011 07:12 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23601#date:07:12</guid>
    </item>
  
		<item>
      <title>Comment by Nicholas Orr</title>
      <description>@Donald except Ext doesn&#8217;t come across as vanilla JS&#8230; the devs have put a fair amount of thought into how to structure things and with that in mind the came up ExtJS. The bite sized examples work really well as long as you use the example stand alone. I can put together a grid with a json store that when a row is clicked it loads up a form and save the data to and from the server. This is a one pager, single function.

Going from that to an App that has lots of stuff going on needs some sort of structure and this isn&#8217;t really clear how best to do this in ExtJS&#8230; Maybe I haven&#8217;t read enough.

I get that we don&#8217;t have to use the MVC deal. It doesn&#8217;t really fit what I want to do anyways, same as how the RoR MVC way didn&#8217;t fit what I wanted to do either&#8230;</description>
      <content:encoded><![CDATA[<p>@Donald except Ext doesn&#8217;t come across as vanilla JS&#8230; the devs have put a fair amount of thought into how to structure things and with that in mind the came up ExtJS. The bite sized examples work really well as long as you use the example stand alone. I can put together a grid with a json store that when a row is clicked it loads up a form and save the data to and from the server. This is a one pager, single function.</p>

<p>Going from that to an App that has lots of stuff going on needs some sort of structure and this isn&#8217;t really clear how best to do this in ExtJS&#8230; Maybe I haven&#8217;t read enough.</p>

<p>I get that we don&#8217;t have to use the MVC deal. It doesn&#8217;t really fit what I want to do anyways, same as how the RoR MVC way didn&#8217;t fit what I wanted to do either&#8230;</p>]]></content:encoded>
      <pubDate>Tue, 28 Jun 2011 21:44 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23590#date:21:44</guid>
    </item>
  
		<item>
      <title>Comment by Donald</title>
      <description>@Justin Noel Maybe this hasnt been mentioned anywhere but you dont have to follow their MVC pattern&#8230;You can still use ExtJS as you would with version 3 or 2&#8230;...</description>
      <content:encoded><![CDATA[<p>@Justin Noel Maybe this hasnt been mentioned anywhere but you dont have to follow their MVC pattern&#8230;You can still use ExtJS as you would with version 3 or 2&#8230;...</p>]]></content:encoded>
      <pubDate>Tue, 28 Jun 2011 21:41 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23589#date:21:41</guid>
    </item>
  
		<item>
      <title>Comment by Justin Noel</title>
      <description>@Donald &#45; I never suggested I was having trouble creating widgets or elements, nor am I a complete noob to JavaScript.&amp;nbsp; Ext JS 4 is a very complex framework, has a completely new MVC structure, etc.&amp;nbsp; That is slightly beyond &#8220;looking for more of a JavaScript course&#8221;

So, if CakePHP, RoR, or any other framework came out with a complete rewrite and did not provide a working example that covered MOST aspects in a single coherent example, should the confused programmer simply &#8220;look for a PHP course&#8221; or &#8220;look for a Ruby course&#8221;?

There is no doubt that much more experienced developers are well on their way to productivity with Ext JS.&amp;nbsp; However, the less experienced (to Ext) are baffled.&amp;nbsp; Look in the forums for people begging for a complete CRUD example, a better MVC example.&amp;nbsp; Should we all be taking &#8220;JavaScript for Dummies&#8221; instead?&amp;nbsp; Sencha has certainly not provided enough truly useful examples to encourage people to adopt Ext JS.</description>
      <content:encoded><![CDATA[<p>@Donald - I never suggested I was having trouble creating widgets or elements, nor am I a complete noob to JavaScript.&nbsp; Ext JS 4 is a very complex framework, has a completely new MVC structure, etc.&nbsp; That is slightly beyond &#8220;looking for more of a JavaScript course&#8221;</p>

<p>So, if CakePHP, RoR, or any other framework came out with a complete rewrite and did not provide a working example that covered MOST aspects in a single coherent example, should the confused programmer simply &#8220;look for a PHP course&#8221; or &#8220;look for a Ruby course&#8221;?</p>

<p>There is no doubt that much more experienced developers are well on their way to productivity with Ext JS.&nbsp; However, the less experienced (to Ext) are baffled.&nbsp; Look in the forums for people begging for a complete CRUD example, a better MVC example.&nbsp; Should we all be taking &#8220;JavaScript for Dummies&#8221; instead?&nbsp; Sencha has certainly not provided enough truly useful examples to encourage people to adopt Ext JS.</p>

]]></content:encoded>
      <pubDate>Tue, 28 Jun 2011 21:08 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23587#date:21:08</guid>
    </item>
  
		<item>
      <title>Comment by Donald</title>
      <description>@Nicholas Orr @Justin Noel  It seems like you guys have grasped the basics of ExtJS but not the basics of JavaScript&#8230;. All ExtJS is, is JavaScript&#8230;.if you are unsure of how to create new Elements or Widgets via JS/ExtJS then maybe you should be looking for more of a JavaScript course.

Creating a large application just adds more widgets and lines of code, this is done by creating objects/methods via JavaScript and calling those via Events/handlers.&amp;nbsp; Sure along with a large application comes much more code to manage and how do you manage that?&amp;nbsp; Well that comes with experience and guidance.</description>
      <content:encoded><![CDATA[<p>@Nicholas Orr @Justin Noel  It seems like you guys have grasped the basics of ExtJS but not the basics of JavaScript&#8230;. All ExtJS is, is JavaScript&#8230;.if you are unsure of how to create new Elements or Widgets via JS/ExtJS then maybe you should be looking for more of a JavaScript course.</p>

<p>Creating a large application just adds more widgets and lines of code, this is done by creating objects/methods via JavaScript and calling those via Events/handlers.&nbsp; Sure along with a large application comes much more code to manage and how do you manage that?&nbsp; Well that comes with experience and guidance.</p>]]></content:encoded>
      <pubDate>Tue, 28 Jun 2011 20:32 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23586#date:20:32</guid>
    </item>
  
		<item>
      <title>Comment by Nicholas Orr</title>
      <description>@JustinNoel is on the money, as soon as I step outside of the example and into the real world, shit does not stack up at all :(

The desktop app is nice, the feed viewer app is nice too. Even doing the Google music beta interface (http://img823.imageshack.us/img823/3433/googlemusicbeta.png) in extjs is fairly straight forward as each one of these things are straight forward due to their single use/purpose.

Real business apps are not single use/purpose, they have all sorts of data that interact all over the place depending on a ton of criteria (our app, attempting to capture who has access to what is convulted as there is more than one thing happening)

I&#8217;d like to see an example app that has different data going on, different views depending on different situations, even a standard shopping site with front and back ends is simple/straight forward.

I guess the issue is real world examples are only going to exist in real world contexts and as such are probably not going to be opened up as examples to follow as they actually solve business needs, which are not for general public consumption&#8230; This is very much the case with out app. I know exactly how I want to work and which extjs bits to use, I&#8217;m just struggling to structure this app so it is not a hodge podge of fail&#8230;</description>
      <content:encoded><![CDATA[<p>@JustinNoel is on the money, as soon as I step outside of the example and into the real world, shit does not stack up at all :(</p>

<p>The desktop app is nice, the feed viewer app is nice too. Even doing the Google music beta interface (<a href="http://img823.imageshack.us/img823/3433/googlemusicbeta.png">http://img823.imageshack.us/img823/3433/googlemusicbeta.png</a>) in extjs is fairly straight forward as each one of these things are straight forward due to their single use/purpose.</p>

<p>Real business apps are not single use/purpose, they have all sorts of data that interact all over the place depending on a ton of criteria (our app, attempting to capture who has access to what is convulted as there is more than one thing happening)</p>

<p>I&#8217;d like to see an example app that has different data going on, different views depending on different situations, even a standard shopping site with front and back ends is simple/straight forward.</p>

<p>I guess the issue is real world examples are only going to exist in real world contexts and as such are probably not going to be opened up as examples to follow as they actually solve business needs, which are not for general public consumption&#8230; This is very much the case with out app. I know exactly how I want to work and which extjs bits to use, I&#8217;m just struggling to structure this app so it is not a hodge podge of fail&#8230;</p>]]></content:encoded>
      <pubDate>Tue, 28 Jun 2011 20:26 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23585#date:20:26</guid>
    </item>
  
		<item>
      <title>Comment by Sebastien Tardif</title>
      <description>Another blog could be about:
currentRec.beginEdit();
currentRec.endEdit();
currentRec.commit();
basicForm.updateRecord(currentRec);

It&#8217;s hard to find a good explanation about these.</description>
      <content:encoded><![CDATA[<p>Another blog could be about:<br />
currentRec.beginEdit();<br />
currentRec.endEdit();<br />
currentRec.commit();<br />
basicForm.updateRecord(currentRec);</p>

<p>It&#8217;s hard to find a good explanation about these.</p>]]></content:encoded>
      <pubDate>Tue, 28 Jun 2011 20:01 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23581#date:20:01</guid>
    </item>
  
		<item>
      <title>Comment by Justin Noel</title>
      <description>Jay,

First, I greatly appreciate your post.&amp;nbsp; This is the most useful tutorial I have found on any aspect of Ext JS 4 to date.&amp;nbsp; Thank you so much for providing it.

&#8221; I believe it paves the way for future articles that describe what you’re looking for.&amp;nbsp; That is, if Sencha will have me do it &#8221;&amp;nbsp; : They&#8217;d better!

&#8220;@DB and @halcwb This article was written with the novice in mind and is over ten pages printed!&amp;nbsp; There was no way I was going to mix MVC in the mix.&amp;nbsp; The purpose was to show how to use Ext.Loader with custom classes.&amp;nbsp; &#8220;

I completely appreciate your perspective here.&amp;nbsp; However, I feel that ALL that&#8217;s been published to date is mini&#45;examples that describe little scenarios.&amp;nbsp; There are literally tons of them in the docs, the guides, the samples, this blog etc.&amp;nbsp; There are so many that describe just one little aspect without a view on the whole.&amp;nbsp; THESE are what are confusing us.&amp;nbsp; Each one is in a silo, configs objects differently (see quote below), introduces concepts never seen elsewhere with little explanation, etc.&amp;nbsp; 

&#8220;Why do you need to use initComponent to set the items of the form panel? Can’t you just use the items config option?&#8221;

Sencha has done a very poor job of introducing us all the Ext JS 4.&amp;nbsp; I for one am quite disappointed.&amp;nbsp; I convinced my management team that Ext was the way to go for our future development needs.&amp;nbsp; Now, I am struggling to complete a complex app because of the lack of a single coherent example more complex than editing a user in a grid via a form.

Sencha needs to step up and provide a well documented single MVC example that incorporates and explains all best practicies.</description>
      <content:encoded><![CDATA[<p>
Jay,</p>

<p>First, I greatly appreciate your post.&nbsp; This is the most useful tutorial I have found on any aspect of Ext JS 4 to date.&nbsp; Thank you so much for providing it.</p>

<p>&#8221; I believe it paves the way for future articles that describe what you’re looking for.&nbsp; That is, if Sencha will have me do it &#8221;&nbsp; : They&#8217;d better!</p>

<p>&#8220;@DB and @halcwb This article was written with the novice in mind and is over ten pages printed!&nbsp; There was no way I was going to mix MVC in the mix.&nbsp; The purpose was to show how to use Ext.Loader with custom classes.&nbsp; &#8220;</p>

<p>I completely appreciate your perspective here.&nbsp; However, I feel that ALL that&#8217;s been published to date is mini-examples that describe little scenarios.&nbsp; There are literally tons of them in the docs, the guides, the samples, this blog etc.&nbsp; There are so many that describe just one little aspect without a view on the whole.&nbsp; THESE are what are confusing us.&nbsp; Each one is in a silo, configs objects differently (see quote below), introduces concepts never seen elsewhere with little explanation, etc.&nbsp; </p>

<p>&#8220;Why do you need to use initComponent to set the items of the form panel? Can’t you just use the items config option?&#8221;</p>

<p>Sencha has done a very poor job of introducing us all the Ext JS 4.&nbsp; I for one am quite disappointed.&nbsp; I convinced my management team that Ext was the way to go for our future development needs.&nbsp; Now, I am struggling to complete a complex app because of the lack of a single coherent example more complex than editing a user in a grid via a form.</p>

<p>Sencha needs to step up and provide a well documented single MVC example that incorporates and explains all best practicies.</p>]]></content:encoded>
      <pubDate>Tue, 28 Jun 2011 12:08 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23563#date:12:08</guid>
    </item>
  
		<item>
      <title>Comment by Ingol</title>
      <description>Great stuff !! Too bad there isn&#8217;t more of this .. :&#45;( 
Cant wait for Ext4 In Action</description>
      <content:encoded><![CDATA[<p>Great stuff !! Too bad there isn&#8217;t more of this .. :-( <br />
Cant wait for Ext4 In Action <img src="/images/smileys/wink.gif" width="19" height="19" alt="wink" style="border:0;" /></p>]]></content:encoded>
      <pubDate>Tue, 28 Jun 2011 08:14 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23549#date:08:14</guid>
    </item>
  
		<item>
      <title>Comment by camelCase</title>
      <description>In object oriented terms the example code is declaring derived class types when instances of the core ExtJS class would be sufficient. Does the class loader mandate this form of OO design?</description>
      <content:encoded><![CDATA[<p>In object oriented terms the example code is declaring derived class types when instances of the core ExtJS class would be sufficient. Does the class loader mandate this form of OO design?</p>]]></content:encoded>
      <pubDate>Tue, 28 Jun 2011 07:50 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23547#date:07:50</guid>
    </item>
  
		<item>
      <title>Comment by FredricBerling</title>
      <description>The Sencha command&#45;line tool in the SDK builds a Jsb and creates a single js file of all the required classes.
I use that when going from dev to deploy.</description>
      <content:encoded><![CDATA[<p>The Sencha command-line tool in the SDK builds a Jsb and creates a single js file of all the required classes.<br />
I use that when going from dev to deploy.</p>]]></content:encoded>
      <pubDate>Mon, 27 Jun 2011 21:59 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23525#date:21:59</guid>
    </item>
  
		<item>
      <title>Comment by Les</title>
      <description>&amp;gt;&amp;gt;&amp;gt; I believe it’s a missing piece to Ext Loader.&amp;nbsp; Something that I’ve talked about since #ExtJS 4.0’s launch.

Jay,

Can you explore this some more with your friends at Sencha?&amp;nbsp; When are they planning to add the ability to combine the Ext&#45;loaded files into a single file?&amp;nbsp; This is a must have feature for larger apps.</description>
      <content:encoded><![CDATA[<p>&gt;&gt;&gt; I believe it’s a missing piece to Ext Loader.&nbsp; Something that I’ve talked about since #ExtJS 4.0’s launch.</p>

<p>Jay,</p>

<p>Can you explore this some more with your friends at Sencha?&nbsp; When are they planning to add the ability to combine the Ext-loaded files into a single file?&nbsp; This is a must have feature for larger apps.</p>]]></content:encoded>
      <pubDate>Mon, 27 Jun 2011 21:03 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23523#date:21:03</guid>
    </item>
  
		<item>
      <title>Comment by Jay Garcia</title>
      <description>@bigfish, i think :&amp;nbsp; paths : &#123; &#8216;myNamespace&#8217; : &#8216;src/mynamespace&#8217;, &#8216;othernamespace&#8217; : &#8216;src/othernamespace&#8217; &#125;</description>
      <content:encoded><![CDATA[<p>@bigfish, i think :&nbsp; paths : &#123; &#8216;myNamespace&#8217; : &#8216;src/mynamespace&#8217;, &#8216;othernamespace&#8217; : &#8216;src/othernamespace&#8217; &#125;</p>]]></content:encoded>
      <pubDate>Mon, 27 Jun 2011 20:45 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23520#date:20:45</guid>
    </item>
  
		<item>
      <title>Comment by bigfish</title>
      <description>Can the Loader resolve multipart namespaces? Eg, if you specify:

Ext.Loader.setConfig(&#123;
paths: &#8216;top: &#8216;src/top&#8217;
&#125;

Will it be able to load the class &#8216;top.middle.Bottom&#8217; from &#8216;src/top/middle/Bottom.js&#8217; ?

I guess I could try, but I&#8217;m lazy :p</description>
      <content:encoded><![CDATA[<p>Can the Loader resolve multipart namespaces? Eg, if you specify:</p>

<p>Ext.Loader.setConfig(&#123;<br />
paths: &#8216;top: &#8216;src/top&#8217;<br />
&#125;</p>

<p>Will it be able to load the class &#8216;top.middle.Bottom&#8217; from &#8216;src/top/middle/Bottom.js&#8217; ?</p>

<p>I guess I could try, but I&#8217;m lazy :p</p>]]></content:encoded>
      <pubDate>Mon, 27 Jun 2011 20:13 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23516#date:20:13</guid>
    </item>
  
		<item>
      <title>Comment by Steven Roussey</title>
      <description>One thing that is missing is how to use the &#8220;package&#8221; files. That is, using package&#45;grid.js instead of all the files separately that make up the grid. It is the cross between ext&#45;all and individual files. They used to make these files for us in the Ext3 days, but Ext4&#8217;s loader is the way to actually do it&#8230;</description>
      <content:encoded><![CDATA[<p>One thing that is missing is how to use the &#8220;package&#8221; files. That is, using package-grid.js instead of all the files separately that make up the grid. It is the cross between ext-all and individual files. They used to make these files for us in the Ext3 days, but Ext4&#8217;s loader is the way to actually do it&#8230;</p>]]></content:encoded>
      <pubDate>Mon, 20 Jun 2011 17:31 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23168#date:17:31</guid>
    </item>
  
		<item>
      <title>Comment by Austin</title>
      <description>Love this tutorial but wanna see more like this tutorials.</description>
      <content:encoded><![CDATA[<p>Love this tutorial but wanna see more like this tutorials.</p>]]></content:encoded>
      <pubDate>Mon, 20 Jun 2011 13:53 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23164#date:13:53</guid>
    </item>
  
		<item>
      <title>Comment by Edwin Sandoval</title>
      <description>Very very good article man, I learned EXT JS 3.0 but now I want to learn the 4 version as soon as possible jajaja

Greatings from Chihuahua</description>
      <content:encoded><![CDATA[<p>Very very good article man, I learned EXT JS 3.0 but now I want to learn the 4 version as soon as possible jajaja</p>

<p>Greatings from Chihuahua</p>]]></content:encoded>
      <pubDate>Fri, 17 Jun 2011 16:49 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23046#date:16:49</guid>
    </item>
  
		<item>
      <title>Comment by ykey</title>
      <description>What about ext&#45;dev.js and ext&#45;all&#45;dev.js that were added in 4.0.2?</description>
      <content:encoded><![CDATA[<p>What about ext-dev.js and ext-all-dev.js that were added in 4.0.2?</p>]]></content:encoded>
      <pubDate>Fri, 17 Jun 2011 03:16 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:23000#date:03:16</guid>
    </item>
  
		<item>
      <title>Comment by Bryan</title>
      <description>Why do you need to use initComponent to set the items of the form panel? Can&#8217;t you just use the items config option?</description>
      <content:encoded><![CDATA[<p>Why do you need to use initComponent to set the items of the form panel? Can&#8217;t you just use the items config option?</p>]]></content:encoded>
      <pubDate>Fri, 17 Jun 2011 03:15 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:22999#date:03:15</guid>
    </item>
  
		<item>
      <title>Comment by Jonathan Ingram</title>
      <description>I know this is a post on the Class Loader, not really Ext application architecture, but how would you go about using an App.js file when you have a multi&#45;page site. That is, you have a /users page and a /products page and each essentially has its own Ext.onReady &#45; obviously you can&#8217;t include two calls to Ext.onReady in App.js and it seems hacky to do a conditional check based on the URL to determine what Ext.onReady to fire. Would the recommended best practice solution to treat each page (i.e. each /users and /products) as its own App (i.e. UsersApp.js and ProductsApp.js) which could then be merged into an App.js for performance?</description>
      <content:encoded><![CDATA[<p>I know this is a post on the Class Loader, not really Ext application architecture, but how would you go about using an App.js file when you have a multi-page site. That is, you have a /users page and a /products page and each essentially has its own Ext.onReady - obviously you can&#8217;t include two calls to Ext.onReady in App.js and it seems hacky to do a conditional check based on the URL to determine what Ext.onReady to fire. Would the recommended best practice solution to treat each page (i.e. each /users and /products) as its own App (i.e. UsersApp.js and ProductsApp.js) which could then be merged into an App.js for performance?</p>]]></content:encoded>
      <pubDate>Fri, 17 Jun 2011 00:06 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:22996#date:00:06</guid>
    </item>
  
		<item>
      <title>Comment by Jay Garcia</title>
      <description>@Trung,

I believe it&#8217;s a missing piece to Ext Loader.&amp;nbsp; Something that I&#8217;ve talked about since  #ExtJS 4.0&#8217;s launch.</description>
      <content:encoded><![CDATA[<p>@Trung,</p>

<p>I believe it&#8217;s a missing piece to Ext Loader.&nbsp; Something that I&#8217;ve talked about since  #ExtJS 4.0&#8217;s launch.</p>]]></content:encoded>
      <pubDate>Thu, 16 Jun 2011 20:02 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:22988#date:20:02</guid>
    </item>
  
		<item>
      <title>Comment by Trung Nguyen</title>
      <description>I can see the usefulness of this approach when the number of files is small or when working in a development mode, but does JSBuilder (if Ext&#8217;s still using that to build) read these Ext.require() statements to build a single JS bundle for production deployments?</description>
      <content:encoded><![CDATA[<p>I can see the usefulness of this approach when the number of files is small or when working in a development mode, but does JSBuilder (if Ext&#8217;s still using that to build) read these Ext.require() statements to build a single JS bundle for production deployments?</p>]]></content:encoded>
      <pubDate>Thu, 16 Jun 2011 19:28 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:22987#date:19:28</guid>
    </item>
  
		<item>
      <title>Comment by Jay Garcia</title>
      <description>@DB and @halcwb This article was written with the novice in mind and is over ten pages printed!&amp;nbsp; There was no way I was going to mix MVC in the mix.&amp;nbsp; The purpose was to show how to use Ext.Loader with custom classes.&amp;nbsp; I believe it paves the way for future articles that describe what you&#8217;re looking for.&amp;nbsp; That is, if Sencha will have me do it</description>
      <content:encoded><![CDATA[<p>@DB and @halcwb This article was written with the novice in mind and is over ten pages printed!&nbsp; There was no way I was going to mix MVC in the mix.&nbsp; The purpose was to show how to use Ext.Loader with custom classes.&nbsp; I believe it paves the way for future articles that describe what you&#8217;re looking for.&nbsp; That is, if Sencha will have me do it <img src="/images/smileys/smile.gif" width="19" height="19" alt="smile" style="border:0;" /></p>]]></content:encoded>
      <pubDate>Thu, 16 Jun 2011 19:01 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:22986#date:19:01</guid>
    </item>
  
		<item>
      <title>Comment by DB</title>
      <description>Echoing what halcwb said about taking this to a larger App context. Why not go the user guide way and call app.launch()&amp;nbsp; &#45; and include controllers&#8230; I think examples like these will confuse many users who need to learn Best Practices of building a full blown app. If all they need is a modal window they should just use JQuery or some microjs framework.
Also did you notice it takes 7 seconds to load your page? It&#8217;s cause every class is loaded separately in 203 Requests! An SDK builder is required here, or just go the ext&#45;all option, it will be faster.</description>
      <content:encoded><![CDATA[<p>Echoing what halcwb said about taking this to a larger App context. Why not go the user guide way and call app.launch()&nbsp; - and include controllers&#8230; I think examples like these will confuse many users who need to learn Best Practices of building a full blown app. If all they need is a modal window they should just use JQuery or some microjs framework.<br />
Also did you notice it takes 7 seconds to load your page? It&#8217;s cause every class is loaded separately in 203 Requests! An SDK builder is required here, or just go the ext-all option, it will be faster.</p>]]></content:encoded>
      <pubDate>Thu, 16 Jun 2011 18:37 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:22983#date:18:37</guid>
    </item>
  
		<item>
      <title>Comment by goFrendiAsgard</title>
      <description>thank you, this explains a lot,.....</description>
      <content:encoded><![CDATA[<p>thank you, this explains a lot,.....</p>]]></content:encoded>
      <pubDate>Thu, 16 Jun 2011 17:46 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:22979#date:17:46</guid>
    </item>
  
		<item>
      <title>Comment by mdmadph</title>
      <description>You know, that was actually pretty well&#45;written and easy to understand.&amp;nbsp; That class loader system is something I would&#8217;ve killed to have had years ago.</description>
      <content:encoded><![CDATA[<p>You know, that was actually pretty well-written and easy to understand.&nbsp; That class loader system is something I would&#8217;ve killed to have had years ago.</p>]]></content:encoded>
      <pubDate>Thu, 16 Jun 2011 15:40 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:22969#date:15:40</guid>
    </item>
  
		<item>
      <title>Comment by Donald</title>
      <description>Excellent article!!&amp;nbsp; I&#8217;ve yet to really start playing with ExtJS4 but I am so looking forward to it.</description>
      <content:encoded><![CDATA[<p>Excellent article!!&nbsp; I&#8217;ve yet to really start playing with ExtJS4 but I am so looking forward to it.</p>]]></content:encoded>
      <pubDate>Thu, 16 Jun 2011 15:16 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:22964#date:15:16</guid>
    </item>
  
		<item>
      <title>Comment by halcwb</title>
      <description>The Ext Loader functionality is indeed very useful. I use it in a larger MVC application. However, there are some caveats. One of which is that you do not only want to load Controllers, Views, Models and Stores, but you also would like to load small components or widgets that can be reused throughout your application. I find it difficult to figure out how to implement that and fit in the overall application architecture. 
A second (small) detail is, that if you use controllers and you have a model named UserModel, the controller will create a getter getUserModelModel, likewise a UserStore becomes a getUserStoreStore. Small but annoying detail. 
I still am looking forward to learn from a &#8216;real&#8217; application with multiple controllers (possibly a HMVC structure), reusable widgets and components that can be used in multiple views, a strict separation of concerns between control logic, view logic, query logic (I mean the proxy) and model logic.
So, I am looking forward to your Ext Js 4.0 in Action.</description>
      <content:encoded><![CDATA[<p>The Ext Loader functionality is indeed very useful. I use it in a larger MVC application. However, there are some caveats. One of which is that you do not only want to load Controllers, Views, Models and Stores, but you also would like to load small components or widgets that can be reused throughout your application. I find it difficult to figure out how to implement that and fit in the overall application architecture. <br />
A second (small) detail is, that if you use controllers and you have a model named UserModel, the controller will create a getter getUserModelModel, likewise a UserStore becomes a getUserStoreStore. Small but annoying detail. <br />
I still am looking forward to learn from a &#8216;real&#8217; application with multiple controllers (possibly a HMVC structure), reusable widgets and components that can be used in multiple views, a strict separation of concerns between control logic, view logic, query logic (I mean the proxy) and model logic.<br />
So, I am looking forward to your Ext Js 4.0 in Action.</p>]]></content:encoded>
      <pubDate>Thu, 16 Jun 2011 13:43 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:22956#date:13:43</guid>
    </item>
  
		<item>
      <title>Comment by Javier Rincon</title>
      <description>Err jay i mean&#8230;
Stupid spanish dictionary hehe&#8230;</description>
      <content:encoded><![CDATA[<p>Err jay i mean&#8230;<br />
Stupid spanish dictionary hehe&#8230;</p>]]></content:encoded>
      <pubDate>Thu, 16 Jun 2011 13:23 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:22951#date:13:23</guid>
    </item>
  
		<item>
      <title>Comment by Javier Rincon</title>
      <description>Thanks hay, that explains a lot&#8230;
Keep up te good work!</description>
      <content:encoded><![CDATA[<p>Thanks hay, that explains a lot&#8230;<br />
Keep up te good work!</p>]]></content:encoded>
      <pubDate>Thu, 16 Jun 2011 13:21 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:22950#date:13:21</guid>
    </item>
  
		<item>
      <title>Comment by Pit</title>
      <description>Great explanation of Ext.Loader tweaks. Thanks a lot, Jay.</description>
      <content:encoded><![CDATA[<p>Great explanation of Ext.Loader tweaks. Thanks a lot, Jay.</p>]]></content:encoded>
      <pubDate>Thu, 16 Jun 2011 12:58 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//using-ext-loader-for-your-application#id:22945#date:12:58</guid>
    </item>
  
		
	</channel>
</rss>