-
1 Dec 2011 1:23 AM #251
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.jsDon Griffin
Ext JS Development Team Lead
Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue
"Use the source, Luke!"
-
1 Dec 2011 3:35 AM #252
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...
-
1 Dec 2011 2:11 PM #253
-
2 Dec 2011 12:35 AM #254
trying the desktop the Extjs 4.0 way
trying the desktop the Extjs 4.0 way
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).
-
2 Dec 2011 2:19 AM #255
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?
-
8 Dec 2011 9:44 AM #256
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:
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.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; }
-
8 Dec 2011 12:40 PM #257
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 Dec 2011 3:55 PM #258
Does the compatibility layer Ext.reg really work? Place the following in your browser console:
And the output I get is:Code:MyClass = Ext.extend(Ext.Component, { myvar: 1 } ); Ext.reg('myclassxtype','MyClass'); var m = new MyClass(); m.alias
["widget.component", "widget.box"]
I would expect to see widget.myclassxtype in there somewhere. getXType() comes out undefined, which we rely on quite heavily.
-
3 Jan 2012 10:55 PM #259
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.
-
3 Jan 2012 11:06 PM #260
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).
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.
Similar Threads
-
Migration to 3.0
By tillda in forum Community DiscussionReplies: 5Last Post: 17 Aug 2009, 7:19 AM -
Migration to 2.0
By scaswell1 in forum Ext GWT: Help & Discussion (1.x)Replies: 1Last Post: 7 Jul 2009, 9:56 PM -
migration 1.0 to 3.0
By alien3d in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 1 Jun 2009, 5:38 AM -
Migration GXT 1.2.4 to 2.0
By G.edwin in forum Ext GWT: Help & Discussion (1.x)Replies: 2Last Post: 15 May 2009, 6:26 AM



Reply With Quote