1. #1
    Ext GWT Premium Member
    Join Date
    Nov 2007
    Posts
    7
    Vote Rating
    0
    oosthuja is on a distinguished road

      0  

    Default Cannot create an instance of unrecognized alias: layout.hbox

    Cannot create an instance of unrecognized alias: layout.hbox


    Trying to get MVC sample going on ExtJs 4 beta 3. If I run app I get

    Cannot create an instance of unrecognized alias: layout.hbox

    Help please !!!!!1

    Code:
    Ext.Loader.setConfig({enabled:true});
    Ext.require([
        'Ext.data.*',
        'Ext.panel.Panel',
        'Ext.layout.*',
    	'Ext.layout.container.HBox',
        'Ext.tip.QuickTipManager'
    ]);
    Ext.create('Ext.app.Application', {
        name: 'STDM',
        autoCreateViewport:false,
        controllers: [],
    
        launch: function() {
            Ext.create('Ext.container.Viewport', {
                layout: 'fit',
                items: [
                    {
                        xtype: 'panel',
                        title: 'Units',
                        html : 'List of units will go here'
                    }
                ]
            });
    		
        }
    });

  2. #2
    Ext JS Premium Member stevil's Avatar
    Join Date
    Nov 2007
    Location
    Denver, CO
    Posts
    1,045
    Vote Rating
    9
    stevil will become famous soon enough

      0  

    Default


    try changing your requires to:

    PHP Code:
    Ext.require([
        
    'Ext.data.*',
        
    'Ext.panel.Panel',
        
    'Ext.layout.*',
        
    'Ext.layout.container.*',
        
    'Ext.tip.QuickTipManager'
    ]); 
    or

    PHP Code:
    Ext.require([
        
    'Ext.data.*',
        
    'Ext.panel.Panel',
        
    'Ext.layout.*',
        
    'Ext.layout.container.Box',
        
    'Ext.layout.container.HBox',
        
    'Ext.tip.QuickTipManager'
    ]); 
    I'm not sure if '*' is supposed to load sub-namespaces as well (loader doc is not clear on this). That said, HBox extends Box, and I'm wondering if your problem comes from the loader not having loaded them both.

    good luck!

    stevil

Similar Threads

  1. Replies: 11
    Last Post: 23 May 2012, 7:14 PM
  2. Replies: 0
    Last Post: 10 Apr 2011, 8:02 PM
  3. Replies: 2
    Last Post: 1 Apr 2011, 9:37 PM
  4. Replies: 4
    Last Post: 31 Mar 2011, 9:04 AM
  5. how to create an instance of an Ext.extend
    By Shining77 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 13 Jan 2011, 12:55 AM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi