1. #1
    Ext Premium Member
    Join Date
    Apr 2010
    Location
    Goiânia - GO - Brazil
    Posts
    38
    Vote Rating
    0
    gustavofranco is on a distinguished road

      0  

    Default Ext.data.Model.js Not Found

    Ext.data.Model.js Not Found


    Hi!

    Why am I getting this on firebug, when I'm starting my application.

    GET http://localhost:8080/extjs4/view/Ex...=1302631778348 404 Not Found


    Thanks.
    Gustavo.

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,360
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Are you saying that the docs are bad?

  3. #3
    Ext Premium Member
    Join Date
    Apr 2010
    Location
    Goiânia - GO - Brazil
    Posts
    38
    Vote Rating
    0
    gustavofranco is on a distinguished road

      0  

    Default


    No, I'm getting this error on firebug.

    errors.png

    I realize that the code that is originating this error is this:

    Code:
    {
                region      : 'west',
                collapsible : true,
                title       : 'Menu',
                bodyStyle   : {'background-color':'#FFFFFF'},
                xtype       : 'treepanel',
                width       : 200,
                autoScroll  : true,
                split       : true,
                root        : {
                    text : 'Main'
                },
                store       : new Ext.data.TreeStore({
                    proxy: {
                        type : 'ajax',
                        url  : url+'/menu/list.json'
                    },
                    root: {
                        text: 'Ext JS',
                        id: 'src',
                        expanded: true
                    }
                }),
                rootVisible : false
            }

  4. #4
    Ext JS Premium Member westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    905
    Vote Rating
    40
    westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough

      0  

    Default


    I take it you are including bootstrap.js to load the Ext framework?

    Also, believe there is currently an issue with using port numbers with bootstrap, so that could be part of the issue.

  5. #5
    Ext Premium Member
    Join Date
    Apr 2010
    Location
    Goiânia - GO - Brazil
    Posts
    38
    Vote Rating
    0
    gustavofranco is on a distinguished road

      0  

    Default


    Yes westy, I'm using bootstrap.js, but it's loading correctly the ext-debug-all.js.

    The issue is that I have a Viewport, in the west I have a TreePanel (that's the piece of code that I put before) and in the center I have a TabPanel. When I remove the TreePanel of my code the application runs correctly. But with the TreePanel I got the error above posted (as a image).

    I'm not understanding why Ext is trying to get a "Ext.data.Model.js" file in the "view" directory of my app.

  6. #6
    Ext JS Premium Member westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    905
    Vote Rating
    40
    westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough

      0  

    Default


    Oh right; apologies, just thought would check the easiest answer first

    It looks like something is trying to dynamically load the model class, so it thinks it's not defined perhaps.
    Quite strange, and I suspect it highlighting a bug within the TreePanel itself.

    As a workaround you could try setting up the dynamic loader so that it can load Ext classes, although suspect the Loader class may then blow with a duplicate naming issue, but would kind of confirm the issue.

    Something like:
    Code:
            // Set up dynamic class loader
            Ext.Loader.setConfig({
                enabled: true,
                disableCaching: true    // Set this to false if want to put a breakpoint into some dynamically loaded code
            });
    
            Ext.Loader.setPath('Ext', 'Path/to/ext-4.0-beta2/src');
    Hope this helps!

  7. #7
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,664
    Vote Rating
    7
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    maybe this is related to this reported issue:
    http://www.sencha.com/forum/showthre...g-in-treepanel
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  8. #8
    Ext Premium Member
    Join Date
    Apr 2010
    Location
    Goiânia - GO - Brazil
    Posts
    38
    Vote Rating
    0
    gustavofranco is on a distinguished road

      0  

    Default


    Thanks guys, I think I'll wait for next release.

Similar Threads

  1. Data in model
    By Voles in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 24 Mar 2011, 5:06 AM
  2. Replies: 1
    Last Post: 16 Mar 2011, 10:40 PM
  3. com.extjs.gxt.ui.client.data.BeanModelLookup not found
    By sumncc in forum Ext GWT: Discussion
    Replies: 10
    Last Post: 2 Sep 2009, 2:04 PM
  4. Just found a very usefull tool (Testing data Generator)
    By Micha in forum Ext 1.x: Help & Discussion
    Replies: 9
    Last Post: 24 Jul 2007, 7:01 AM
  5. How do I send RAW POST DATA via the XML Data Model?
    By steve.neill in forum Community Discussion
    Replies: 4
    Last Post: 30 Nov 2006, 3:50 PM

Thread Participants: 3