Keith Donald opened SPR-9244 and commented
JavaScript/Ajax frameworks such as jQuery serialize Javascript Objects as form parameters using indexed object notation (because in JavaScript, every object acts like a map). For example, the following JS object:
var object = {
connection : {
provider: 'facebook',
user_id: 1256789,
access_token: 'foo'
}
}
Gets serialized as form parameters:
connection[provider]=facebook&connection[user_id]=1256789&connection[access_token]=foo
It would be helpful if this format could auto-bind to the root form object's 'connection' property of type JavaBean, which would have nested properties 'provider', 'userId', and 'accessToken'. JSR303 validation could then be easily run against that nested bean's properties for example. BeanWrapper can only map the above to a loosely typed Map now--I have to convert to a strongly typed JavaBean manually.
Affects: 3.1.1
Issue Links:
Referenced from: commits spring-attic/spring-framework-issues@4810d5b, spring-attic/spring-framework-issues@4b7474b, spring-attic/spring-framework-issues@4c4b3ef
Keith Donald opened SPR-9244 and commented
JavaScript/Ajax frameworks such as jQuery serialize Javascript Objects as form parameters using indexed object notation (because in JavaScript, every object acts like a map). For example, the following JS object:
Gets serialized as form parameters:
It would be helpful if this format could auto-bind to the root form object's 'connection' property of type JavaBean, which would have nested properties 'provider', 'userId', and 'accessToken'. JSR303 validation could then be easily run against that nested bean's properties for example. BeanWrapper can only map the above to a loosely typed Map now--I have to convert to a strongly typed JavaBean manually.
Affects: 3.1.1
Issue Links:
Referenced from: commits spring-attic/spring-framework-issues@4810d5b, spring-attic/spring-framework-issues@4b7474b, spring-attic/spring-framework-issues@4c4b3ef