1. #51
    Ext JS Premium Member
    Join Date
    Mar 2011
    Posts
    6
    Vote Rating
    0
    shevken is on a distinguished road

      0  

    Default


    How can i reuse your code if i just have a single app, but need to be launched multiple times in the same page.

    Code:
    Ext.application({
        id: 'app_v1',
        name: 'v1',
        appFolder : 'app',
         ...
        launch : function() {
            Ext.create('Ext.panel.Panel', {
                ...
                renderTo: 'div1'
            };
        }
    
    Ext.application({
        id: 'app_v2',
        name: 'v2',
        appFolder : 'app',
        ...
        launch : function() {
            Ext.create('Ext.panel.Panel', {
                ...
                renderTo: 'div2'
            };
        }
    
    <body>
    <div id="div1"></div>
    <div id="div2"></div>
    </body>

  2. #52
    Sencha User xjpmauricio's Avatar
    Join Date
    Jul 2009
    Location
    Portugal, Setúbal
    Posts
    80
    Vote Rating
    0
    xjpmauricio is on a distinguished road

      0  

    Default Extjs MVC, multiple controller instances

    Extjs MVC, multiple controller instances


    Hi everyone, I've been trying to solve this issue also but with no luck yet.

    What I'm trying to achieve is to have the hability to use the same controller on differente panels. Reuse the controllers basically. All my efforts untill now suggest me that the controllers are being instanced as singletons?

    Any official override or sugestions?

  3. #53
    Sencha User
    Join Date
    Aug 2008
    Posts
    48
    Vote Rating
    5
    TonySteele is on a distinguished road

      0  

    Default


    Have you looked at http://deftjs.org/ can use a controller per view.

Similar Threads

  1. Applications - how many?
    By westy in forum Ext: Discussion
    Replies: 0
    Last Post: 21 Feb 2011, 5:45 AM
  2. Building Big Applications
    By aramaki in forum Community Discussion
    Replies: 14
    Last Post: 29 Dec 2010, 3:55 PM
  3. Calling ext GWT applications from legacy applications
    By mathaj77 in forum Ext GWT: Discussion
    Replies: 3
    Last Post: 14 Aug 2009, 4:15 AM
  4. Writting big applications
    By bkraut in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 21 Jul 2008, 12:32 AM
  5. Customize applications
    By JuanPalomo in forum Ext.nd for Notes/Domino
    Replies: 0
    Last Post: 2 Apr 2008, 11:51 PM