PDA

View Full Version : [FIXED-518] Radio/Radiogroup with ']' element in the name brokes form rendering



fg1tr
21 Dec 2010, 6:14 AM
I have a problem with using of square brackets in the Ext.form.RadioGroup items name.

If field is has 'checked' property setted to true, and name has ']' symbol, no fields will be rendered after it. Console ouputs an exception: uncaught exception: Error parsing selector, parsing failed at "]"



Ext.onReady(function() {
var a = new Ext.form.FormPanel({
items: [{
allowBlank: false,
columns: [100, 100],
fieldLabel: 'Status',
// name: 'product[is_active]',
xtype: 'radiogroup',
value: 1,
items: [{
boxLabel: 'Enabled',
checked: true,
name: 'product[is_active]',
inputValue: 1
}, {
boxLabel: 'Disabled', // <-- this element doesn't renders
name: 'product[is_active]',
inputValue: 0
}]
}]
});
a.render(document.body);
});
The same problem has Ext.form.Radio element. No problems with Ext.form.CheckboxGroup.

Condor
21 Dec 2010, 7:06 AM
Duplicate of bug #518 (http://www.sencha.com/forum/showthread.php?44422-OPEN-518-3.x-2.x-Bug-in-radiogroup-when-using-brackets-in-name).

meroy
29 Dec 2010, 9:38 AM
This has been fixed in SVN.

Ext 3.3.x branch revision 7329
Ext Core 3.3.x branch revision 271