--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/hsHStUExV5sJ.
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.
Jeff (creator of Objectify)
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/odd9_XG1AHAJ.
Hi fabio,I've shared my thoughts on this subject here : http://www.jroller.com/sjivan/entry/solving_the_dto_dilemma
Sanjiv
On Sat, Apr 7, 2012 at 7:44 AM, fabio <njo...@gmail.com> wrote:
I'm just about to start a major web app project (rewriting the main product or a sofware vendor) . In the past I've been a project manager or a developer in some small GWT projects. I think GWT is a good choice for business app with a lot of tabular data and information. But still I have some concerns.
- GWT-RPC was one of the reason, I chose GWT in the past because of the magic of using (almost) the same objects on the server and client sides. To cope with the serialization and HIbenrante Lazy loading issues, we 've been using 2 strategies :
- 1/ A modified version of Dozer (powerful but needs tweaking) used to transtype HIbernate objects into a dedicated DTO layer
- 2/ Directly buidling dedicated objects for GWT (infact on this project we even use the same genric structure for entities, a kind of "enhanced" map of properties with an additional type and id attributes.
- Today there is a kind of fog around these questions: GILEAD is not maintained any more, the new RequestFactory API seems awkard to me (especially with all these loose conventions)
So in a nutshell what guys do you recommend for client / server communication in GWT today ?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/hsHStUExV5sJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsub...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> 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+unsub...@googlegroups.com.
Sure RF has a steeper learning curve but I believe you win in the long term.
I'd suggest you upgrade to 2.5 as soon as its released though: many fixes to RF are coming.
RequestFactory is great if you have complex data structures (and lots
of them) to pass back and forth between the client and the server. It
does take more boilerplate to get simple things done, but once you
pass a certain threshold of complexity it pays off big, because it
will serialize your object graph for you (and give you complete
control about what is actually sent over the wire.)
RF also has support for request batching, reducing http request to the
server. Another benefit is that it integrates support for
BeanValidation. And it also works with the Editor framework, which
makes data binding on the client much less tedious.
A few comments inline:
On Sun, Apr 8, 2012 at 4:24 AM, fabio <njo...@gmail.com> wrote:
> Hello Daniel
>
> Let me be explain (maybe some of my assumptions are wrong, so don't hesitate
> to correct me :-) ):
>
> The extra plumbing is pretty heavy, one extra interface for each entity you
> want to pass
> No compile-time checking between properties in the enity and in the client
> interfaces (but maybe the GWT plugins in Eclipse emit some warnings ?)
Incorrect. RF will validate your proxy and request interfaces for you
at compile time. See
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation
> You cannot return from the same call "normal" POJO objects and
> RequestFcatory Serialized Ones
On the client side, all request factory serializable objects extend
BaseProxy and are simple interfaces. You can return pojos and entities
in a single request, but you have to have define a ValueProxy
interface for your pojos and EntityProxy for your entities.
> It makes the whole RPC stacks in GWT feel unclear. Too many ways to achieve
> the same goal. Ideally I would have a prefer a single way (the legacy
> GWT-RPC) that coud have been customized through parameter annotations to
> alter the way serialization occurs by default. I think the GWT team has made
> great efforts to solve commonly encountered issues with GWT-RPC but they
> have lost the magic and beauty of their initial design in the process.
RF is not meant to replace GWT-RPC, which I think is still better for
simpler use cases. But, for heavily "data-oriented" services, RF (in
conjunction with the Editor framework) wins.
Jesse
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/hsHStUExV5sJ.
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.