Thursday, June 27, 2013

Re: RequestFactory validate entity



On Thursday, June 27, 2013 9:59:57 AM UTC+2, Miklós Szabó wrote:
Thank you for your answer!

To build up a frontend to use complex business services (Spring based
application with service and business layer on top of it) would you
recomend GWT RPC instead of RequestFactory?

It's not a secret that I very much prefer RequestFactory over any form of RPC, mostly because RequestFactory forces you to think about your messages and your protocol, and it doesn't tie your client(s) to a specific version of your server code (requiring that you update everyone at the same time –ok, that's not entirely true, but that's how (too) many people do it–).
That said, I don't use onConstraintViolations, and I think it was a mistake to build bean validation into RequestFactory.
RequestFactory has many limitations that can make it hard to use in an application. Once those limitations will be removed (next year maybe; in GWT 3.0; depends if/when I have time to do it), it'll be much better and become as usable as GWT-RPC.
So I won't tell you "use this" or "use that". I think RequestFactory is better than GWT-RPC despite its current limitations, but you'll likely run into them as they're not prominently documented, so it might be better for you to use GWT-RPC, despites its limitations.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment