Results 1 to 2 of 2

Thread: portal - how to properly include?

  1. #1
    Ext User
    Join Date
    Jan 2008
    Vote Rating

    Question portal - how to properly include?

    Hi.. I am trying to have portals in multiple tabs. I started off by looking at the example, and modified it until it looks the way I want it to.

    My problem was when I tried to "move" the code to the application I am building: it appears that the xtype "portal" is not recognized at the time being used.

    I have tested by replacing xtype:'portal' with xtype:'panel', and everything works fine (except I cannot reorder the components, as expected).

    This is how I import the js in the html document
    HTML Code:
        <script type="text/javascript" src="../extjs/adapter/ext/ext-base.js"></script>
        <script type="text/javascript" src="../extjs/ext-all-debug.js"></script>
        <script type="text/javascript" src="Portal.js"></script>
        <script type="text/javascript" src="PortalColumn.js"></script>
        <script type="text/javascript" src="Portlet.js"></script>
        <script type="text/javascript" src="applayout.js"></script>
        <script type="text/javascript" src="fader.js"></script>
    Does anyone see anything wrong here? Any suggestions of what could be wrong are more than welcome

    By the way, the error printed in firebug is
    types[config.xtype || defaultType] is not a constructor
         create(Object title=Yahoo! closable=true region=center, "panel")ext-all-debug.js (line 12100)
         createComponent(Object title=Yahoo! closable=true region=center)ext-all-debug.js (line 13943)
         lookupComponent(Object title=Yahoo! closable=true region=center)ext-all-debug.js (line 13937)
         add(Object title=Yahoo! closable=true region=center)ext-all-debug.js (line 13849)
         createContentTab("Yahoo!")applayout.js (line 353)
         (no name)()applayout.js (line 403)
         fire()ext-all-debug.js (line 1504)
         fireDocReady()ext-all-debug.js (line 1541)
    [Break on this error] return new types[config.xtype || defaultType](config);
    Last edited by ibaniski; 6 Feb 2008 at 2:07 PM. Reason: firbug error

  2. #2
    Ext User
    Join Date
    Jan 2008
    Vote Rating


    Stupid mistake. Apparently I have forgotten to upload one of the js files to the server.
    Last edited by ibaniski; 7 Feb 2008 at 6:53 AM. Reason: stupid mistake

Posting Permissions

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