I don't think there is a perfect solution currently. It all depends on your situation.
The RequestFactory is nice if you have access to the backend, as this mechanism requires a "further" integration between the backend and frontend. But not everybody has access to this part of the backend but merely "the web layer backend" on top of the backend that handles all the front-end communication. However RequestFactory is very efficient. If you only want parts of the domain object (DO) to be transfered to the front-end (like in my case), you need to create DTO and convert DTO <-> DO which costs time to fine tune all and is fragile (make sure you test it well). I use Dozer, but had to make my own dozer branch due to bugs and extra requirements. I understood that Java 7 would offer extra DTO functionality, no idea what the current status of this is. - Ed On Dec 10, 2:50 pm, Thomas Broyer <[email protected]> wrote: > This is (partly) what RequestFactory tries to solve (vs. GWT-RPC): you no > longer use your server-side classes on the client-side, so you don't have > the issues of your entities having to be "translatable" by the GWT compiler. > > If you work with JSON (using things like Jackson or GSON on the > server-side), you can use AutoBeans on the client-side (you can also use > them on the server-side, btw) to easily parse and manipulate the objects > (at least a bit more easily than with JsonUtils.safeEval() and JS Overlay > Types). > > But if you only add annotations to your classes, there's no reason you > couldn't use them on the client-side too; you just have to make sure you > have the source code for the annotations on the classpath too. > > Just a suggestion; AutoBean and RequestFactory are not a silver-bullet, and > JSOs and GWT-RPC are still viable choices (FYI, Google Groups uses GWT-RPC). -- 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.
