Perfect Lion
13 Jan 2010, 3:48 AM
Hi staff,
I'm with a problem with this propertie is not working the mapping my response the server.
Ex:
This is my submit config:
Ext.getCmp('form').getForm().submit({
...
clientValidation: true
, errorReader: new Ext.data.JsonReader({
root: 'errors.fields'
, fields: ['id','msg']
})
...
});
This is my json response of server:
{success: false, errors: {fields: [id:'username', msg:'Invalid Username']}}
This my field:
{
fieldLabel: 'Username'
, name: 'username'
, id: 'username'
, allowBlank: false
}
What problem for not checking warning in field?
Is BUG?
I'm with a problem with this propertie is not working the mapping my response the server.
Ex:
This is my submit config:
Ext.getCmp('form').getForm().submit({
...
clientValidation: true
, errorReader: new Ext.data.JsonReader({
root: 'errors.fields'
, fields: ['id','msg']
})
...
});
This is my json response of server:
{success: false, errors: {fields: [id:'username', msg:'Invalid Username']}}
This my field:
{
fieldLabel: 'Username'
, name: 'username'
, id: 'username'
, allowBlank: false
}
What problem for not checking warning in field?
Is BUG?