PDA

View Full Version : Too much recursion on form submit



same
17 Jun 2011, 12:03 AM
Hi,

I have a problem when I try to send my form in a direct method.
The following error is :

"too much recursion
[Stopper sur une erreur] v === null ? "null" : doEncode(v));"
ext-all-debug.js (ligne 4266)

Do you have an idea to submit the form without this error ?
thanks

same
17 Jun 2011, 12:59 AM
Here is my code :


var formComponent = MyDesktop.getMainForm();

wgt = new Ext.form.AComboBox({
id : getCompId(scrNum,colItems[i][Enum_WidgetAttribute.ID]),
gridComponent: gridComponent,
displayField:'key',
valueField:'value',
value:'',
cls: columnCls,
notify:colItems[i][Enum_WidgetAttribute.NOTIFY]|| '',
tpl: '<tpl for="."><div class=x-combo-list-item id="{key}" name='+colItems[i][Enum_WidgetAttribute.FIELDNAME]+'>{value:defaultValue("&#160;")}</div></tpl>',
editable: colItems[i][Enum_WidgetAttribute.EDITABLE],
disabled:!colItems[i][Enum_WidgetAttribute.ENABLE],
name:colItems[i][Enum_WidgetAttribute.FIELDNAME],
submitValue:false,
minChars: Number.MAX_VALUE,
screenNum:scrNum,
background:colItems[i][Enum_WidgetAttribute.BACKGROUND]||'',
enableKeyEvents:true,
preventMark:true,
isCombo:true,
mode: 'remote',
triggerAction: 'all',
store: new Ext.data.DirectStore({
root : 'data',
baseParams:{
myForm : formComponent,
command : 'comboGridUpdate',
notify : colItems[i][Enum_WidgetAttribute.NOTIFY],
screenNum : this.screenNum,
specificDelay:1
},
directFn: FormService.directSubmit
});

skirtle
17 Jun 2011, 4:26 PM
baseParams:{
myForm : formComponent,
...
}

I don't know much about Ext Direct but I'm very suspicious of this line. Try removing it.

Inspect the stacktrace or add a breakpoint/logging to figure out what it's trying to encode when it blows up.