1. #1
    Sencha User
    Join Date
    Sep 2008
    Posts
    2
    Vote Rating
    0
    adaykin is on a distinguished road

      0  

    Default Answered: Custom View Not Loading

    Answered: Custom View Not Loading


    I have several views which are working and are all being loaded in my app.js file. When I try and include this particular view to be loaded in my app.js file I get this message:

    [WARN][Anonymous] [Ext.Loader] Synchronously loading 'MyNameSpace.view.Screen'; consider adding 'MyNameSpace.view.Screen' explicitly as a require of the corresponding class

    Here is the code for the view:

    Code:
    Ext.create('MyNameSpace.view.Screen', {
    	extend: 'Ext.field.TextArea',
    	
    	config: {
    		cls: 'screen'
    		
    	}
    });
    Here is the code in app.js:

    Code:
    requires: [
            'Ext.MessageBox',
            'Ext.field.TextArea'
        ],
        
        controllers: ['Main'],
    
    
        views: ['View1', 'View2', 'Screen'],

    The views View1 and View2 are loading fine, I'm not sure why Screen is not.

  2. Well...you are trying to include a view which extend a form field...
    Let your Screen View extend an "Ext.Container" instead of an "Ext.field.TextArea".

  3. #2
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,394
    Answers
    148
    Vote Rating
    22
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      1  

    Default


    Well...you are trying to include a view which extend a form field...
    Let your Screen View extend an "Ext.Container" instead of an "Ext.field.TextArea".
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    CEO at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    http://www.tux-components.com/


  4. #3
    Sencha User
    Join Date
    Sep 2008
    Posts
    2
    Vote Rating
    0
    adaykin is on a distinguished road

      0  

    Default


    Is it not possible to extend a form field?

  5. #4
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,394
    Answers
    148
    Vote Rating
    22
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      1  

    Default


    Yes it is...but a text field is not a view.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    CEO at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    http://www.tux-components.com/


Thread Participants: 1

Tags for this Thread

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..."