PDA

View Full Version : ExtJS 3 RC 3 - Distribution package



robertoroberto
1 Jul 2009, 10:13 PM
Hi
I havent' undestand well how ExtJS (RC) are released.
I download it today and RC3 is again different from RC2 ( that was different from RC 1.1)...

In RC3 the "build" folder is missing (in the build folder was all locale js file...)
and also in RC2 there is a (very usefull ) ux-all.js that is missing in RC3.

Probably I haven't understand how install it after download it..
Should I repack it manually ? there is same tools?

How rebuild the ux-all.js ?

About .jsb files; there are 2 files ext.jsb2 (30kb) in the root and another ext.jsb in src (64kb). Why ?

There is also a ext-all-debug.js~ file.. I believe it is a backup...

Thanks

4 Jul 2009, 9:18 AM
ext.jsb2 is a JSBuilder2 File. Eventualy, ext.jsb, from my understanding, will be deprecated.

I think the pkgs folder replaces the build folder, but i could be wrong on this.

robertoroberto
5 Jul 2009, 2:01 AM
Ty

But what is JSBuilder2 ?

I found only 1 version of JSBuilder at http://code.google.com/p/js-builder/

I found only JSBuilder_v.1.1.2.zip (http://js-builder.googlecode.com/files/JSBuilder_v.1.1.2.zip) and JSBuilder_v.1.1.1.zip (http://js-builder.googlecode.com/files/JSBuilder_v.1.1.2.zip) (and I believe they are JSBuilder V 1 )

I hope Monday when ExtJS 3.0 final will be (I hope) released... ExtJS Development Team will give us all new information about new packaging format.

Thanks Again

mjlecomte
5 Jul 2009, 2:00 PM
jsb2 is supposedly a cross platform solution for building. The builder app has yet to be released, should be coming with Ext 3.0.0 I heard.

5 Jul 2009, 2:31 PM
I tested it in os x yesterday :)

aconran
5 Jul 2009, 5:10 PM
roberto -

You bring up an excellent point; thanks for bringing to our attention that the ext-ux.js target file was not included in the latest RC3 release. We will ensure that it is included in 3.0 final.

JSBuilder2 will be released at the same time Ext 3.0 is. (Tomorrow Monday July 6th) JSBuilder2 is a new Java based tool which provides cross-platform support for building JavaScript and CSS files. It provides a bunch of new enhancements over JSBuilder such as:

Cross-platform
Easily include targets as dependencies
Simple JSON based configuration file
Uses YUI Compressor to improve file minification
Ability to easily copy resources from development to a deploy package


In terms of file structure changes; the src/ directory replaces the source/ directory. This was done to ensure that a downloaded copy of Ext from SVN was exactly the same as what you got from a deployed project. (Previously this was not the case.)

The pkgs/ directory replaces the build/ directory. We spent several days determining what the most common packages were that people used in conjunction with one another and how they related. This will enable developers to create a much more stream-lined build (smaller and leaner) without too much headache.

We hope that this will help you out for your packaging needs when creating Ext JS apps.

aconran
5 Jul 2009, 5:11 PM
Hi
In RC3 the "build" folder is missing (in the build folder was all locale js file...)

You can find the locale files in the src/ directory.

robertoroberto
5 Jul 2009, 10:27 PM
Ty Aaron !
Great!

robertoroberto
6 Jul 2009, 10:49 PM
Hi
Where is the download location of JSBuilder2 ? I cannot found it at http://code.google.com/p/js-builder/
Or it is not yet released?

I downloaded ExtJS 3.0 (Final release).

In the ux-all.js maybe there is a mistake.

I just talk about it at https://extjs.com/forum/showthread.php?t=73083
It includes ALL extensions...
But there is a extension that create a big issue.
It is Focus.js
it contains


init: function(){
this.el.dom.tabIndex = '1';
this.el.addClass('x-a11y-focusable');
this.el.on({
focus: this.onFocus,
blur: this.onBlur,
keydown: this.onKeyDown,
scope: this
});
},


For this reason all elements have TabIndex = 1 and an additional css class....
Every time an elements recieve the focus, it will have a border.
Try to include ux-all.js and you will see immediatly the behaviour.
I believe that focus.js should be excluded.


I rebuild the ux-all without this extension and now it works fine (I hope there isn't any other issue...)

aconran
7 Jul 2009, 9:24 AM
You can now download (http://extjs.com/products/jsbuilder/) the new JSBuilder2 application.

To exclude the Focus Manager you simply need to comment out the following line in the ext.jsb2.


/*,{
text: 'Focus.js',
path: 'examples/ux/'
}*/

mystix
7 Jul 2009, 7:07 PM
You can now download (http://extjs.com/products/jsbuilder/) the new JSBuilder2 application.

To exclude the Focus Manager you simply need to comment out the following line in the ext.jsb2.


/*,{
text: 'Focus.js',
path: 'examples/ux/'
}*/


i just tried that and JSBuilder2 barfs.
am i missing anything?

aconran
8 Jul 2009, 4:47 AM
Ack, seems the Java JSON library is a bit more strict than plain old JavaScript. It dislikes the comments in the JSON. Go ahead and remove that line and you should be good to go.