On 23 oct, 07:38, Santosh kumar <[email protected]> wrote:
> Hi,
>
> Using Dictionary in Gwt onModule load i want to get the list of objects from
> Json  ???
>
> http://code.google.com/webtoolkit/articles/dynamic_host_page.html
>
> The example in the above link it is shown for string, but i want to get the
> list of objects form the json ??
> And also can you send me the sample code of JSON format for the list of
> objects(same as shown in the above example)
> and also how to retrieve these objects in the gwt using Dictionary ?
>
> please can anyone guide me ?

Use JSNI instead (Dictionary, as its name and package imply, is
designed for i18n, getting string constants from keys).
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html

public static native JsArray<Foo> getListOfFoo() /*-{ return
$wnd.myVariable.foo; }-*/;

(where Foo is a JavaScript Overlay type:
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html
)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to