I would like to incorporate a GWT front-end into a Spring application. This Spring application will have several different kinds of views. GWT will be only one of them.
Given this requirement, it would be nice to decouple the GWT from the server-side code. The GWT Http Request Classes in com.google.gwt.http.client look like an attractive alternative to RPC.
I am a GWT newbie. Perhaps I am not understanding what RPC does. But I ask, for the sake of drawing out the issue,
Why would one ever want to use GWT RPC? Why would not one want always want to use the Http Client classes, in order to decouple server-side code from client-code, with plain
Java controller code on the server not wedded to GWT specifics?
or, if the RPC code is necessary, what would be the best way to encapsulate it in this multiple view-style Spring application? Put it into a "GWTController"?
Any suggestions or comments are welcome!
Thanks in advance.