PDA

View Full Version : No errors, no window!



dcima
18 Dec 2012, 6:55 AM
ExtJs 4.2.0
Sencha Cmd v3.0.0.250

It seems a never ending battle ...
sencha generate app Test . ===> : ok
http://localhost:8080/Test ===> (screen01) : ok
sencha compile page -in index.html -out -debug=false -strip app.html ===> ok
http://localhost:8080/Test/app.html ===> ok
(screen01)
40863

I don't want to start my application with a viewport but with a login panel, so I changed app.js:



Ext.application({
autoCreateViewport: false
,controllers: ["Main"]
,launch: function() {
var lp = Ext.widget('loginPanel');
lp.center();
}
,name: 'Test'
,views: ["Login"]
});

Ext.define('Test.controller.Main', {
extend: 'Ext.app.Controller'
});



and my Login.js :



Ext.define('Test.view.Login', {
alias: 'widget.loginPanel'
,autoShow: true
,dockedItems: [{
dock: 'bottom'
,items: [{
action: 'doLogin'
,icon: 'resources/images/login32.png'
,margin: 2
,scale: 'large'
,text: 'Login'
,xtype: 'button'
},{
xtype: 'tbfill'
},{
action: 'doLanding'
,icon: 'resources/images/exit32.png'
,margin: 2
,scale: 'large'
,text: 'Annulla'
,xtype: 'button'
}]
,xtype: 'toolbar'
}]
,extend: 'Ext.form.Panel'
,frame: true
,height: 150
,itemId: 'loginPanel'
,items: [{
fieldLabel: 'User'
,xtype: 'textfield'
},{
fieldLabel: 'Password'
,inputType: 'password'
,xtype: 'textfield'
}]
,layout: { align: 'stretch', type: 'vbox' }
,renderTo: Ext.getBody()
,title: 'GesVol - Login'
,width: 300
});


after this I refresh with:
sencha app refresh ==> ok
open http://localhost:8080/Test ==> ok
everything is working so I compile:
sencha compile page -in index.html -out -debug=false -strip app.html ==> ok
http://localhost:8080/Test/app.html ==> (screen07) : BUMP!
(screen07)
40864

fast load time with no errors but no window!

Is Sencha Cmd v3.0.0.250 compatible with ExtJs 4.2.0 ?
If yes there is something under the carpet that it's blocking my window?

:((:((:((