Re: Convert Java bean Object to JSON in GWT 2.4
Hey guys, I'm using piriti (http://code.google.com/p/piriti/) for convert POJO to JSON and reverse. Works fine. Thanks for your help. Gere. On Oct 13, 1:09 pm, Sanjiv Jivan sanjiv.ji...@gmail.com wrote: Gere, Can you elaborate what you're trying to do here? What kind of datasource are you using in SmartGWT and where are you trying to convert the beans to JSON? If you're using RestDataSource then you're probably converting your beans to JSON on the server side and for this you can use a library like XStream or FlexJSON (http://flexjson.sourceforge.net/). As Gal Dolber mentions, piriti can be used to convert beans to JSON on the client side but this might not be what you're looking for. Use of RequestFactory is not required or appropriate when working with Smart GWT datasources. Sanjiv On Thu, Oct 13, 2011 at 11:40 AM, GereMora gerem...@gmail.com wrote: I don't know Request Factory!.. Sounds good. In my case, I need work with Java beans with Smart GWT Dataousources. I'll investigate Request Factory. Thks! Gere. On Oct 12, 7:38 pm, Tomasz Gawel tomaszga...@op.pl wrote: As to JSON: Have you tried Google GSON library ? http://code.google.com/p/google-gson/ And second question: Do you really need JSON? RequestFactory does not suit your case? http://code.google.com/intl/pl/webtoolkit/doc/latest/DevGuideRequestF... -- 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-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Convert Java bean Object to JSON in GWT 2.4
I don't know Request Factory!.. Sounds good. In my case, I need work with Java beans with Smart GWT Dataousources. I'll investigate Request Factory. Thks! Gere. On Oct 12, 7:38 pm, Tomasz Gawel tomaszga...@op.pl wrote: As to JSON: Have you tried Google GSON library ?http://code.google.com/p/google-gson/ And second question: Do you really need JSON? RequestFactory does not suit your case?http://code.google.com/intl/pl/webtoolkit/doc/latest/DevGuideRequestF... -- 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-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Convert Java bean Object to JSON in GWT 2.4
Gere, Can you elaborate what you're trying to do here? What kind of datasource are you using in SmartGWT and where are you trying to convert the beans to JSON? If you're using RestDataSource then you're probably converting your beans to JSON on the server side and for this you can use a library like XStream or FlexJSON ( http://flexjson.sourceforge.net/ ). As Gal Dolber mentions, piriti can be used to convert beans to JSON on the client side but this might not be what you're looking for. Use of RequestFactory is not required or appropriate when working with Smart GWT datasources. Sanjiv On Thu, Oct 13, 2011 at 11:40 AM, GereMora gerem...@gmail.com wrote: I don't know Request Factory!.. Sounds good. In my case, I need work with Java beans with Smart GWT Dataousources. I'll investigate Request Factory. Thks! Gere. On Oct 12, 7:38 pm, Tomasz Gawel tomaszga...@op.pl wrote: As to JSON: Have you tried Google GSON library ? http://code.google.com/p/google-gson/ And second question: Do you really need JSON? RequestFactory does not suit your case? http://code.google.com/intl/pl/webtoolkit/doc/latest/DevGuideRequestF... -- 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-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Convert Java bean Object to JSON in GWT 2.4
Hi Guys!, I'm working in a Project with GWT 2.4 + Smart GWT 2.5. I need convert my Java beans in JSON string. I tried with some library without success (gwtprojsonserializer, gwtjsonizer and the AutoBean framework of GWT). Anyone know of a library that works for this?.. Let me know!. Thanks!. Gere. -- 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-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Convert Java bean Object to JSON in GWT 2.4
As to JSON: Have you tried Google GSON library ? http://code.google.com/p/google-gson/ And second question: Do you really need JSON? RequestFactory does not suit your case? http://code.google.com/intl/pl/webtoolkit/doc/latest/DevGuideRequestFactory.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 google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Convert Java bean Object to JSON in GWT 2.4
here's another nice project http://code.google.com/p/piriti/ to use on the client side On Wed, Oct 12, 2011 at 7:38 PM, Tomasz Gawel tomaszga...@op.pl wrote: As to JSON: Have you tried Google GSON library ? http://code.google.com/p/google-gson/ And second question: Do you really need JSON? RequestFactory does not suit your case? http://code.google.com/intl/pl/webtoolkit/doc/latest/DevGuideRequestFactory.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 google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- 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-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.