cyroc
14 Jul 2010, 12:06 AM
コンポジットフィールドに登録したコンポーネントで initRef が空振りしているような・・・
http://extjs.cachefly.net/ext-3.2.1
version xds-1.0.2.4.
MyWindow.ui.js
MyWindowUi = Ext.extend(Ext.Window, {
title: 'My Window',
width: 460,
height: 392,
initComponent: function() {
this.items = [
{
xtype: 'fieldset',
title: 'My Fields',
items: [
{
xtype: 'compositefield',
fieldLabel: 'Label',
items: [
{
xtype: 'textfield',
fieldLabel: 'Label',
ref: '../../AAAA',
id: 'AAAA'
}
]
},
{
xtype: 'textfield',
fieldLabel: 'Label',
ref: '../BBBB',
id: 'BBBB'
}
]
}
];
MyWindowUi.superclass.initComponent.call(this);
}
});
MyWindow.js
MyWindow = Ext.extend(MyWindowUi, {
initComponent: function() {
MyWindow.superclass.initComponent.call(this);
this.AAAA....<--undefined
this.BBBB....<--defined
}
});
http://extjs.cachefly.net/ext-3.2.1
version xds-1.0.2.4.
MyWindow.ui.js
MyWindowUi = Ext.extend(Ext.Window, {
title: 'My Window',
width: 460,
height: 392,
initComponent: function() {
this.items = [
{
xtype: 'fieldset',
title: 'My Fields',
items: [
{
xtype: 'compositefield',
fieldLabel: 'Label',
items: [
{
xtype: 'textfield',
fieldLabel: 'Label',
ref: '../../AAAA',
id: 'AAAA'
}
]
},
{
xtype: 'textfield',
fieldLabel: 'Label',
ref: '../BBBB',
id: 'BBBB'
}
]
}
];
MyWindowUi.superclass.initComponent.call(this);
}
});
MyWindow.js
MyWindow = Ext.extend(MyWindowUi, {
initComponent: function() {
MyWindow.superclass.initComponent.call(this);
this.AAAA....<--undefined
this.BBBB....<--defined
}
});