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
I'm using AutoBeans (which were designed for RequestFactory) to
marshall and unmarshall my model classes on the client side without
having access to the server side. I don't have a JEE server or even a
servlet container as I'm using CouchDB. My models are interfaces
annotated as EJB3 POJOs but also annotated with validations. And I'm
exporting them from CouchDB to an RDBMS using Hibernate. So I have
models that are used for the client side, a NoSQL and an RDBMS.
Think it through ... you'll get there too!
smoyer
--
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.