xtypes and Ext.require
Well, there are the xtypes which are IMHO a good way to define your component tree (as they are created on demand).
But I cannot understand why the built-in ExtJS widgets are registered to the Ext.Loader. It would be good if there's a registration for xtypes like
Ext.registerClassForXType ('grid', 'Ext.grid.Panel');
So, if an xtype isn't found and Ext.Loader is activated the class will be loaded first. The standard widgets should be registered by default.
It seems that Ext.ClassManager.instantiateByAlias does this. It's not used internally I think. Why?
P.S.: Same problem exists with layouts as "layout:'border'" does not work without an Ext.require.
Use Ext.ClassManger.setAlias, i.e
// Then later on in your application's code
var mine = Ext.create('mine'); // Will automatically load 'My.awesome.Widget' if it doesn't exist yet
Ehm, yes, but why isn't it used for ExtJS base widgets, i.e. form elements?