madirishman
15 Jun 2010, 4:56 PM
Hi all, everything works great - until I add a composite field to my form. I always get this error:
b[d.xtype || e] is not a constructor
(ext-all.js (line 7))
has anyone experienced this? The code looks clean enough:
MyCompositeFieldUi = Ext.extend(Ext.form.CompositeField, {
fieldLabel: 'Airline Ticket Needed?',
layout: 'hbox',
anchor: '100%',
initComponent: function() {
this.items = [
{
xtype: 'radio',
fieldLabel: 'Label',
boxLabel: 'Yes',
name: 'TicketNeeded'
},
{
xtype: 'radio',
fieldLabel: 'Label',
boxLabel: 'No',
name: 'TicketNeeded'
}
];
MyCompositeFieldUi.superclass.initComponent.call(this);
}
});
and the preview works, but I get the error in the browser...
thanks!
md
b[d.xtype || e] is not a constructor
(ext-all.js (line 7))
has anyone experienced this? The code looks clean enough:
MyCompositeFieldUi = Ext.extend(Ext.form.CompositeField, {
fieldLabel: 'Airline Ticket Needed?',
layout: 'hbox',
anchor: '100%',
initComponent: function() {
this.items = [
{
xtype: 'radio',
fieldLabel: 'Label',
boxLabel: 'Yes',
name: 'TicketNeeded'
},
{
xtype: 'radio',
fieldLabel: 'Label',
boxLabel: 'No',
name: 'TicketNeeded'
}
];
MyCompositeFieldUi.superclass.initComponent.call(this);
}
});
and the preview works, but I get the error in the browser...
thanks!
md