JSON Data in GWT

153 views
Skip to first unread message

IDeshpande

unread,
Oct 31, 2011, 11:37:00 AM10/31/11
to Google Web Toolkit
Hi All,

I have my application which sends me a form in JSON format.
Is there any direct way or API GWT provides to render this JSON data
into any GWT UI element like Panel or a Dialog box?

Raphael André Bauer

unread,
Oct 31, 2011, 4:59:34 PM10/31/11
to google-we...@googlegroups.com

GWT itself does not support direct JSON Widget data binding.
If you want to parse JSON data I can recommend
https://github.com/chirino/resty-gwt . Rendering data after parsing
with resty gwt is simple...

Best,

Raphael

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

--
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

Fabricio Pizzichillo

unread,
Oct 31, 2011, 7:15:29 PM10/31/11
to google-we...@googlegroups.com
HI
i recommend piriti, it's very simple to use. its a tool that can map json to bean in client code

regards

Fabricio

2011/10/31 IDeshpande <indrane...@gmail.com>

Thomas Broyer

unread,
Nov 1, 2011, 6:25:47 AM11/1/11
to google-we...@googlegroups.com
What do you mean by "a form in JSON format", and "render this JSON data" ?

BTW, besides other responses whose authors plug their own projects, GWT proper can do it too:

You can:
  1. define JavaScriptOverlay types
  2. parse JSON using JsonUtils.safeEval
Or you can:
  1. define AutoBean interfaces and an AutoBeanFactory
  2. GWT.create() your AutoBeanFactory
  3. parse JSON using AutoBeanCodex.decode

As for the "rendering" part, well, if you're talking about "form data" (rather than form fields' description), have a look at the Editor framework, it'll work with either approach above.
Reply all
Reply to author
Forward
0 new messages