Results 1 to 3 of 3

Thread: Unable to extend (proxy null)

  1. #1

    Question Unable to extend (proxy null)


    I'm trying to extend JsonStore to create reusable component to access my rest service.

    The following code works (no extend, in 'onReady'):
    var store ={
                 autoDestroy: true,
                 url: '/decks',
                 root: 'results',
                 restful: true,
                 idProperty: 'id',
                 mode: 'local',
                 fields: [{name: 'id', name: 'name'}]
    But when I do this, the store didn't work:
    Code: = Ext.extend(, {
        initComponent: function() {
            var config = {
                autoDestroy: true,
                url: '/decks',
                root: 'results',
                restful: true,
                idProperty: 'id',
                fields: [{name: 'id', name: 'name'}]
            Ext.apply(this, Ext.apply(this.initialConfig, config));
  , arguments);
        var store = new;
    After looking inside ext-all-debug.js when doing 'store.load()' the proxy variable is not defined. Seems that some initialization logic isn't processed when extending. Any idea ?

    I never experienced such issues when extending other components.

    I've tried different 'way' of extending but nothing change, help more than welcome !


    Alois Cochard

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    The Netherlands


    A store isn't a component. It has no initComponent method!

    For stores you will need to override the contructor instead.

  3. #3


    AAAAH ! Shame on me ... really !

    Totally forgot that not everything is Component in ExtJs ... bad Java 'Object' habit :-(

    Thanks a lot, now that's rocks

    Alois Cochard

Similar Threads

  1. [FIXED-1263] =>
    By plalx in forum Ext 3.x: Bugs
    Replies: 1
    Last Post: 13 Sep 2010, 4:18 PM
  2. Error this.proxy is null
    By alkasoam in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 30 Mar 2010, 6:25 AM
  3. [2.0-rc1] Unable to extend TreePanel
    By v_t_m in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 11 May 2009, 10:21 AM
  4. [2.0.2][CLOSED] data.JsonStore doesn't allow another proxy
    By andrei.neculau in forum Ext 2.x: Bugs
    Replies: 4
    Last Post: 27 Mar 2008, 11:32 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts