PDA

View Full Version : Missing 'Build Your Own' Dependencies


INeedADip
04-22-2007, 02:20 PM
It looks like you guys might be missing some dependencies when using the "Build Your Own" off the download page.

MessageBox:
* Core - Drag and Drop

Form - ComboBox Widget:
* Data - Simple Store

I could be wrong, but after looking at the source a little, it looks like these might be missing. I didn't want any drag and drop or data store in my "base extensions file", just the MessageBox, Button, and some of the Form controls.

Not a big deal, I added them and it worked. I just wanted to let you know because Jacks extensions do have a reputation of "just working", and if someone else tries to build their own it could be frustrating if they get dependency errors

corey.gilmore
04-26-2007, 04:36 PM
After running into some problems making a custom build from svn (http://extjs.com/forum/showthread.php?t=5204) I stepped through the includes one-by-one. These are all based off rev 272.

BasicDialog.js has a pseudo-dependency on State.js because of refreshSize:
// private
refreshSize : function(){
this.size = this.el.getSize();
this.xy = this.el.getXY();
Ext.state.Manager.set(this.stateId || this.el.id + "-state", this.el.getBox());
},

Ext.MessageBox sets draggable:true on it's BasicDialog and there is no check in BasicDialog.js to ensure that DND support is included.
BasicDialog.js:171
if(this.draggable !== false ){
should be
if(this.draggable !== false && Ext.dd.DD){

'sp has no properties' in ext-yui-adapter.js (I'm not sure about the other adapters) is a generic error that seems to generally indicate you're missing a dependency. In the original thread (http://extjs.com/forum/showthread.php?t=5204) it was because I was including debug.js which uses layouts (and other things) which I'd removed from my build. Moral? If you want to strip down your build, don't include debug.js.

DDCore.js:1779 - it's not a good thing when this.dragThreshMet && !this.dragCurrent.moveOnly ;)

DateMenu items also require CheckItem.js which requires Item.js and BaseItem.js. In the end to get a DateMenu item the only menu items you DON'T need are TextItem.js and Separator.js (
Menu.js, MenuMgr.js, BaseItem.js, Item.js, CheckItem.js, Adapter.js, DateItem.js all appear to be necessary.

aditya
05-04-2007, 02:06 PM
Hi Guys,

I used the Build You Own Ext functionality from the download website today.

My application uses MessageBox widget and I selected that. However it depends on KeyMap which was not identified as a depenedency and hence my MessageBox code bit doesnt work.

Please ensure that MessageBox includes KeyMap as dependency.

Cheers,
Aditya

aditya
05-04-2007, 02:10 PM
MessageBox depends on Element which depends on KeyMap.

aditya
05-08-2007, 11:44 AM
Hi Guys,

I see that Element.js depends on KeyMap.js Core utility, however KeyMap.js this is not seen on the dependencies when you build your own Ext. Any reason for this?

Cheers,
Aditya

jack.slocum
05-09-2007, 11:15 AM
Element only depends on KeyMap if you are using key bindng, in which case you would need to select to include KeyMap. This doesn't mean everyone needs to include KeyMap. Hopefully this makes sense.

aditya
05-09-2007, 11:49 AM
Jack, it makes sense, however, MessageBox uses it implicitly but its not listed as a dependency. Which means that when you Build-Your-Own Ext with MessageBox, the Core KeyMap is missing and code breaks.