PDA

View Full Version : compositefield in Version 3.3.1



3xc3ption
2 Dec 2010, 2:49 AM
Hi there,

i have a problem with the compositefield in the new version 3.3.1

Example:


TestUi = Ext.extend(Ext.Panel, {
title: 'My Panel',
width: 400,
height: 250,
itemId: 'test',
layout: 'form',
initComponent: function() {
this.items = [
{
xtype: 'compositefield',
items: [
{
xtype: 'textfield',
flex: 1,
itemId:'feld_1',
fieldLabel: 'Label',
ref:'field1'
},
{
xtype: 'textfield',
flex: 1,
itemId:'feld_2',
fieldLabel: 'Label',
ref:'field2'
}
]
}
];
TestUi.superclass.initComponent.call(this);
}
});

Ext.onReady(function() {
var headPanel = new TestUi({
renderTo: 'panel_test_1'
});
});


I get an error like:
TypeError: comp.getItemId is not a function
return comp.getItemId();

whats wrong with the compositefield ?

Screamy
2 Dec 2010, 5:59 AM
I think it's complaining about the erroneous itemId on your base panel. itemId is generally intended for use on objects in an items collection.

Try removing itemId: 'test' from your extended Panel and see what you get.

3xc3ption
15 Dec 2010, 4:29 AM
Ok, i found my own bug :">

It was a bad update to version 3.3.1

thanks for help !!!
please close ;)