You found a bug! We've classified it as a bug in our system. We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #251
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,403
    Vote Rating
    147
    dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold

      0  

    Default


    Quote Originally Posted by excyberlabber View Post
    We are upgrading out extjs desktop application from 3.3.1 to 4 using the compatibility layer. I am running into problems with our App and Module classes, and I would like to see the code for the Ext 4 desktop to see if I can convert our system to it. But while I can see the beautiful example at http://dev.sencha.com/deploy/ext-4.0...p/desktop.html, I cannot find the source code....
    The code is compressed, but the source is in the download zip file in the /examples/desktop folder. These can be seen on the web as well:

    These are the files that make up the "desktop framework":

    http://dev.sencha.com/deploy/ext-4.0...ktop/js/App.js
    http://dev.sencha.com/deploy/ext-4.0.../js/Desktop.js
    http://dev.sencha.com/deploy/ext-4.0...p/js/Module.js
    http://dev.sencha.com/deploy/ext-4.0...ortcutModel.js
    http://dev.sencha.com/deploy/ext-4.0...s/StartMenu.js
    http://dev.sencha.com/deploy/ext-4.0.../js/TaskBar.js
    http://dev.sencha.com/deploy/ext-4.0...op/js/Video.js
    http://dev.sencha.com/deploy/ext-4.0...s/Wallpaper.js

    These are the files that are purely example:

    http://dev.sencha.com/deploy/ext-4.0...rdionWindow.js
    http://dev.sencha.com/deploy/ext-4.0...desktop/App.js
    http://dev.sencha.com/deploy/ext-4.0...sMenuModule.js
    http://dev.sencha.com/deploy/ext-4.0...BogusModule.js
    http://dev.sencha.com/deploy/ext-4.0.../GridWindow.js
    http://dev.sencha.com/deploy/ext-4.0...top/Notepad.js
    http://dev.sencha.com/deploy/ext-4.0...op/Settings.js
    http://dev.sencha.com/deploy/ext-4.0...ystemStatus.js
    http://dev.sencha.com/deploy/ext-4.0...p/TabWindow.js
    http://dev.sencha.com/deploy/ext-4.0...VideoWindow.js
    http://dev.sencha.com/deploy/ext-4.0...lpaperModel.js
    Don Griffin
    Engineering Manager - Frameworks (Ext JS / Sencha Touch)

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

  2. #252
    Sencha User
    Join Date
    Jul 2009
    Posts
    13
    Vote Rating
    0
    excyberlabber is on a distinguished road

      0  

    Default


    Thanks for responding so quickly, Don! I have loaded these files, but now I am getting the following error right at the top of firebug:

    uncaught exception: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: Ext.ux.desktop.Desktop

    Then a little further down the console, I get another:

    uncaught exception: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required classes: Ext.ux.desktop.App

    It's strange, these files are in there. I have added some of the example files, MyDesktop.GridWindow, for instance, and these are being seen. But not the base files...

  3. #253
    Sencha User
    Join Date
    Jul 2009
    Posts
    13
    Vote Rating
    0
    excyberlabber is on a distinguished road

      0  

    Default


    Quote Originally Posted by excyberlabber View Post
    Thanks for responding so quickly, Don! I have loaded these files, but now I am getting the following error right at the top of firebug:

    uncaught exception: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: Ext.ux.desktop.Desktop

    Then a little further down the console, I get another:

    uncaught exception: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required classes: Ext.ux.desktop.App

    It's strange, these files are in there. I have added some of the example files, MyDesktop.GridWindow, for instance, and these are being seen. But not the base files...
    Ok, I gave up for now, and have backed out of the new extjs 4.0 method of creating a desktop. Now I get NO errors. But my icons don't respond to being clicked, and I have lost the taskbar at the bottom. Is that normal?

  4. #254
    Sencha User
    Join Date
    Jul 2009
    Posts
    13
    Vote Rating
    0
    excyberlabber is on a distinguished road

      0  

    Default trying the desktop the Extjs 4.0 way

    trying the desktop the Extjs 4.0 way


    Quote Originally Posted by excyberlabber View Post
    Ok, I gave up for now, and have backed out of the new extjs 4.0 method of creating a desktop. Now I get NO errors. But my icons don't respond to being clicked, and I have lost the taskbar at the bottom. Is that normal?
    I did get the same old error with Chrome (although no errors from Firefox/Firebug), so I had to admit I was stuck. So I have flip-flopped again, and will start with the Ext 4.0 version of the desktop and try to build our functionality into that. I was tasked by my boss to find out how long it would take to get a functional system going with the new Extjs 4.0 code and compatibility layer.

    So now I have duplicated the 4.0 version of the desktop on our system, using all the static examples. I am getting no errors now, as I was before. I found something that I was doing that was inconsistent and fixed that, and I also used the classes.js file that I found at
    http://soft.lich.im/ext-4.0.7-gpl/examples/desktop/

    So here we go. We have a big Extjs 3.3.1 system with a lot of modules.

    I will post to this forum as I make progress (and if I have questions).

  5. #255
    Sencha User
    Join Date
    Jul 2009
    Posts
    13
    Vote Rating
    0
    excyberlabber is on a distinguished road

      0  

    Default


    Quote Originally Posted by excyberlabber View Post
    I did get the same old error with Chrome (although no errors from Firefox/Firebug), so I had to admit I was stuck. So I have flip-flopped again, and will start with the Ext 4.0 version of the desktop and try to build our functionality into that. I was tasked by my boss to find out how long it would take to get a functional system going with the new Extjs 4.0 code and compatibility layer.

    So now I have duplicated the 4.0 version of the desktop on our system, using all the static examples. I am getting no errors now, as I was before. I found something that I was doing that was inconsistent and fixed that, and I also used the classes.js file that I found at
    http://soft.lich.im/ext-4.0.7-gpl/examples/desktop/

    So here we go. We have a big Extjs 3.3.1 system with a lot of modules.

    I will post to this forum as I make progress (and if I have questions).
    I am trying to load in one of our modules, and I am getting the old error:

    uncaught exception: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: MyDesktop.ImageDBWindow

    I have the code:
    Ext.Loader.setConfig({enabled:true});
    Ext.Loader.setPath({
    'Ext.ux.desktop': 'js',
    MyDesktop: ''
    });
    Ext.require(['MyDesktop.App']);

    just above the onReady function, which I know is being executed. Why do I continue to get the message the Ext.Loader is not enabled?

  6. #256
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    11
    Vote Rating
    0
    DannyMeister is on a distinguished road

      0  

    Default ComponentManager.all HashMap vs MixedCollection

    ComponentManager.all HashMap vs MixedCollection


    So the type of ComponentManager.all has changed from a MixedCollection to a HashMap. Time and time again in the upgrade process I'm running into this challenge, as HashMap does not have many of the useful functions, such as find(), that exist in MixedCollection. I'm interested in the reasoning behind the switch in data type, and if there is a general strategy for dealing with this... copying all the components into a MixedCollection would obviously be bad on performance. Or perhaps we are abusing ComponentMgr.all and the Sencha developers don't expect people to want to work extensively with it? Here's a 3.x code snippet of two utility functions that scan all components to check whether we have any of our custom components with a dirty flag set:

    Code:
    checkFieldsChanged: function() {
         return Ext.ComponentMgr.all.find(this.findDirtyItem, this) ? true : false;
    },
    findDirtyItem: function(item){
         var result = false;
          if (Ext.isDefined(item.getXType()) && !Ext.isEmpty(item.dctControl)){
              if (Ext.isDefined(item.isDirty)){
                  result = item.isDirty();
              }
          }
          return result;
    }
    For this particular case, I can't find anything in HashMap that has an early out like MixedCollection.findBy or Array.every. Array.every(HashMap.getValues(), myFunction) seems like a bad idea performance-wise for anything run frequently since it has to go to the work of pushing all the items from the HashMap into an array before it can begin the iteration.

  7. #257
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    11
    Vote Rating
    0
    DannyMeister is on a distinguished road

      0  

    Default


    Ammendment to the earlier post: I just realized that HashMap.each does indeed have early termination... it just has no handy return type to indicate it happened so I missed it. That makes getting a performant solution a little easier.

  8. #258
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    11
    Vote Rating
    0
    DannyMeister is on a distinguished road

      0  

    Default


    Does the compatibility layer Ext.reg really work? Place the following in your browser console:

    Code:
    MyClass = Ext.extend(Ext.Component, { myvar: 1 } );
    Ext.reg('myclassxtype','MyClass');
    var m = new MyClass();
    m.alias
    And the output I get is:
    ["widget.component", "widget.box"]

    I would expect to see widget.myclassxtype in there somewhere. getXType() comes out undefined, which we rely on quite heavily.

  9. #259
    Sencha Premium Member
    Join Date
    Dec 2011
    Posts
    59
    Vote Rating
    0
    jlimaye is on a distinguished road

      0  

    Default Calendar example in 3.4 not able to migrate to 4.0

    Calendar example in 3.4 not able to migrate to 4.0


    I used migration pack for migrating the calendar example of Ext 3.4 but Im not able to resolve all the errors. I saw the migration video and solved few errors which were shown. Attaching the folder. Please tell me where Im going wrong.

    Thanks.
    Attached Files

  10. #260
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    4
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    Quote Originally Posted by jlimaye View Post
    I used migration pack for migrating the calendar example of Ext 3.4 but Im not able to resolve all the errors. I saw the migration video and solved few errors which were shown. Attaching the folder. Please tell me where Im going wrong.

    Thanks.
    The calendar example has been updated in 4.1, though at the moment I think there might be a couple of bugs in the beta to be fixed before 4.1 final. Or you could always use the Calendar Pro version that is already fully compatible with Ext 4.0 (and is more currently maintained).

Similar Threads

  1. Migration to 3.0
    By tillda in forum Community Discussion
    Replies: 5
    Last Post: 17 Aug 2009, 7:19 AM
  2. Migration to 2.0
    By scaswell1 in forum Ext GWT: Help & Discussion (1.x)
    Replies: 1
    Last Post: 7 Jul 2009, 9:56 PM
  3. migration 1.0 to 3.0
    By alien3d in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 1 Jun 2009, 5:38 AM
  4. Migration GXT 1.2.4 to 2.0
    By G.edwin in forum Ext GWT: Help & Discussion (1.x)
    Replies: 2
    Last Post: 15 May 2009, 6:26 AM

Thread Participants: 110

  1. aconran (1 Post)
  2. mystix (1 Post)
  3. ap (2 Posts)
  4. evant (1 Post)
  5. ethraza (1 Post)
  6. steffenk (5 Posts)
  7. brookd (4 Posts)
  8. dherbolt (2 Posts)
  9. tore.kjorsvik (1 Post)
  10. wm003 (2 Posts)
  11. stevil (4 Posts)
  12. vlads (3 Posts)
  13. paubach (1 Post)
  14. BuckBazooka (1 Post)
  15. dbraiden (1 Post)
  16. mjhaston (1 Post)
  17. demon222 (1 Post)
  18. SToto98 (1 Post)
  19. rebe (1 Post)
  20. zombeerose (6 Posts)
  21. rich02818 (3 Posts)
  22. sg707 (3 Posts)
  23. vpopa (1 Post)
  24. hschaefer123 (3 Posts)
  25. jchau (1 Post)
  26. chrisvensko (1 Post)
  27. DannyMeister (3 Posts)
  28. dajester2008 (1 Post)
  29. mschwartz (4 Posts)
  30. wgpubs (4 Posts)
  31. LisburnLad (2 Posts)
  32. edspencer (3 Posts)
  33. firefoxSafari (9 Posts)
  34. Luckyman (3 Posts)
  35. oniram88 (1 Post)
  36. danguba (7 Posts)
  37. cnesbit (2 Posts)
  38. Jangla (1 Post)
  39. MuadDib-DK (1 Post)
  40. abctenorio@gmail.com (1 Post)
  41. uzver (3 Posts)
  42. zhangt (2 Posts)
  43. peet (3 Posts)
  44. ZachG (3 Posts)
  45. yyogev (7 Posts)
  46. pcr (4 Posts)
  47. 大漠穷秋 (1 Post)
  48. jacurry (4 Posts)
  49. excyberlabber (6 Posts)
  50. dongryphon (3 Posts)
  51. Henrik Rutzou (1 Post)
  52. hazimdikenli (1 Post)
  53. paparent85 (1 Post)
  54. Ekambos (3 Posts)
  55. burnie (1 Post)
  56. aaronbartell (1 Post)
  57. mattgoldspink (1 Post)
  58. dbrin (1 Post)
  59. CraigMyers (1 Post)
  60. Francois Lecroart (5 Posts)
  61. BulletzBill (1 Post)
  62. tumbochka (1 Post)
  63. a.l (2 Posts)
  64. c.darmon (8 Posts)
  65. Dipish (1 Post)
  66. blex2010 (2 Posts)
  67. kpalser (1 Post)
  68. ldonofrio (2 Posts)
  69. DHainzl (6 Posts)
  70. MrSparks (2 Posts)
  71. rebeccapeltz (1 Post)
  72. Jeremy Solarz (1 Post)
  73. RLBruggers (2 Posts)
  74. Ourysso (1 Post)
  75. jjohnston (1 Post)
  76. ShaneMc (9 Posts)
  77. msmolyak (1 Post)
  78. watermark (1 Post)
  79. lukefowell89 (3 Posts)
  80. winkelmann (1 Post)
  81. willjohnathan (1 Post)
  82. cayenne_08 (1 Post)
  83. SebTardif (3 Posts)
  84. mberrie (3 Posts)
  85. rijkvanwel (1 Post)
  86. george4voc (1 Post)
  87. Jehu (2 Posts)
  88. freeranger (4 Posts)
  89. Inoc (1 Post)
  90. eCoast (1 Post)
  91. dstarr@allofe.com (3 Posts)
  92. bee (2 Posts)
  93. /mbr (3 Posts)
  94. ptraczynski (1 Post)
  95. qqjianyue (1 Post)
  96. jmf10024 (1 Post)
  97. Reggae (2 Posts)
  98. wimh (1 Post)
  99. jas88 (1 Post)
  100. Roho (1 Post)
  101. lokisapocalypse (1 Post)
  102. ovillemain (1 Post)
  103. Flashmattic (2 Posts)
  104. testnina123 (1 Post)
  105. jlimaye (2 Posts)
  106. rivanov (1 Post)
  107. usha.basavaraju (1 Post)
  108. rageshp_moxie (2 Posts)
  109. er_abhisinha (1 Post)
  110. darkwata (2 Posts)