Hi, everyone...i want to use dot notation with values of name config options of form components because of struts BeanUtils.populate method...When the form is submitted it populates my actionform...
i have used this notation at pure html:
Code:
.......
<input type='hidden' name='employeeType.id' value="1"/>
.......
however when i use the same notation with ext.form's fields , the form submission fails due to null value...
(A piece from my sample code):
Code:
this.add({
xtype:'combo',
name : 'employeeType.id',
id : 'employeeType.id',
fieldLabel : 'Employee Type',
valueField:'id',
displayField : 'type',
mode : 'local',
store: new Ext.data.Store({
proxy : new Ext.data.HttpProxy({
url : 'GetEmployeeTypesAction.do'
}),
baseParams: {
respObjName: 'empType',
javaFields: new Array(('id'),('type')),
extFields: new Array(('id'),('type'))
},
reader: new Ext.data.JsonReader({
root: 'empType'
}, Ext.data.Record.create([{name: 'id'},{name: 'type'}])),
autoLoad : true
})
});
what do i have to do? or what am i doing wrong?
Thx for your replies in advance