Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    39
    Vote Rating
    0
    WBX is on a distinguished road

      0  

    Default [DEFER] Component xtype not registered in exported js file

    [DEFER] Component xtype not registered in exported js file


    I created a window into which I inserted a ListView & DataView. After configuration, I performed "Promote To Class" and changed the jsClass & userXType settings for both. I then exported the project and opened the result in a browser, receiving the following error:

    Error: types[config.xtype || defaultType] is not a constructor
    Source File: http://extjs.cachefly.net/ext-3.2.1/ext-all-debug.js
    Line: 9553

    I discovered that the xtype was being registered for the ListView:

    Code:
    CategoryListView = Ext.extend(CategoryListViewUi, {
        initComponent: function() {
            CategoryListView.superclass.initComponent.call(this);
        }
    });
    Ext.reg('categorylistview', CategoryListView);
    but not for the DataView:

    Code:
    BookDataView = Ext.extend(BookDataViewUi, {
        initComponent: function() {
            BookDataView.superclass.initComponent.call(this);
        }
    });
    I tried deleting the DataView and recreating but received the same results.

    I've attached all relevant files.
    Attached Files

  2. #2
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    Hi WBX,

    Because the xtype is registered in the .js file, and the .js is not overwritten if it already exists (so any implementation code is not lost), any userXType changes are not seen between one export and another. You will need to either add the xtype registration manually, or delete your .js file for BookDataView (given that you don't have any implementation code in there yet). So in short, you had exported a BookDataView class once before, prior to adding an userXType.

    Hope that helps.

  3. #3
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    Also want to mention that we're going to come up with a clean solution to this.

  4. #4
    Sencha User
    Join Date
    Mar 2010
    Posts
    39
    Vote Rating
    0
    WBX is on a distinguished road

      0  

    Default


    Quote Originally Posted by jarrednicholls View Post
    Hi WBX,

    Because the xtype is registered in the .js file, and the .js is not overwritten if it already exists (so any implementation code is not lost), any userXType changes are not seen between one export and another. You will need to either add the xtype registration manually, or delete your .js file for BookDataView (given that you don't have any implementation code in there yet). So in short, you had exported a BookDataView class once before, prior to adding an userXType.

    Hope that helps.
    Just what the doctor ordered. Thank you very much Jarred.

  5. #5
    Sencha User
    Join Date
    Mar 2010
    Posts
    39
    Vote Rating
    0
    WBX is on a distinguished road

      0  

    Default


    On a related note, prior to performing "Promote To Class", I set the id of the child components and this was reflected in the component hierarchy (i.e. displays as categoryListView instead of MyListView). After performing "Promote To Class", the component hierarchy display changed back to MyListView (the jsClass setting) and the userXType was set to mylistview.

    As part of the clean solution being worked, I suggest using the id (if set) to create the jsClass and userXType settings in order to maintain some consistency.

  6. #6
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    Thanks for the suggestion, that makes sense.

Similar Threads

  1. Replies: 4
    Last Post: 13 Apr 2011, 12:48 AM
  2. Check if certain xtype exists/ is registered
    By michiel in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 9 Mar 2010, 11:20 AM
  3. New xtype registered, but getting error on render
    By aacraig in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 28 May 2008, 3:23 AM
  4. Refreshing grid registered as xtype
    By johnstontrav in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 27 May 2008, 3:11 PM

Thread Participants: 1