google-code-export / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
0 stars 0 forks source link

com.gwtext.client.data.Converter#format cannot handle JSON subobjects #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The Converter used to format data received from JSON services cannot handle
"subobjects" inside the json objects. 

The default action is to print [object Object], this behavior cannot be
overriden with a Converter as the
com.gwtext.client.data.Converter#format(...) methods expects a
java.lang.String instead of the JavaScriptObject (?)I would assume is the
only workable solution to this problem.

(The attributes of the JSON "subobject" can then be picked out using the
JavaScriptObjectHelper#getAttribute(...,...) method)

Original issue reported on code.google.com by intern...@gmail.com on 11 Sep 2007 at 3:24

GoogleCodeExporter commented 9 years ago
Would support for nested properties by the JsonReader via the FieldDef's 
'mapping'
meet your needs? I know that core Ext doesnt support nested properties for 
Json, but
I believe there's an extension to the class that adds this support.

Original comment by sanjiv.j...@gmail.com on 14 Sep 2007 at 2:34

GoogleCodeExporter commented 9 years ago
Well since its not really in "base Ext" I'm quite o-k with having to pick out 
the
attribute values of the nested properties in a custom renderer with
JavaScriptObjectHelper methods.

Original comment by intern...@gmail.com on 17 Sep 2007 at 8:14

GoogleCodeExporter commented 9 years ago

Original comment by sanjiv.j...@gmail.com on 3 Dec 2007 at 12:45