Hi there,
After some time (quite a lot, to be honest, about two years) spent on LGPL version, I'm evaluating EE/Pro of SmartGWT (for a quite complex project, for which LGPL won't be suitable).
Following the online and bundled documentation I succesfully used Spring mappings with Datasource CRUD related operation (binding to "client" objects), but I don't well understand the section:
How can I bind Controllers processing to user request (if i could)?
I miss something?
Basically, I would (I need) to "modularize" the most possible the server code, and I'm wondering if there is a way to integrate Spring Controllers into server processing method, I mean:
1) Into "client" I invoke methods from stadards mapping async services;
2) Related "Implementation" aren't standard Impl classes but Controllers (Spring mapped), from which I could call other beans, complete the processing and return response data to client Callback;
Any hint?
Thanks a lot,
Luca.
After some time (quite a lot, to be honest, about two years) spent on LGPL version, I'm evaluating EE/Pro of SmartGWT (for a quite complex project, for which LGPL won't be suitable).
Following the online and bundled documentation I succesfully used Spring mappings with Datasource CRUD related operation (binding to "client" objects), but I don't well understand the section:
Code:
Using Spring Controllers with Smart GWT DMI You can create a Controller that invokes standard Smart GWT server request processing, including DMI, like so: public class Smart GWTRPCController extends AbstractController { public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { // invoke Smart GWT server standard request processing com.isomorphic.rpc.RPCManager.processRequest(request, response); return null; // avoid default rendering } } This lets you use Spring's DispatchServlet, Handler chain and Controller architecture as a pre- and post-processing model wrapped around Smart GWT DMI.
I miss something?
Basically, I would (I need) to "modularize" the most possible the server code, and I'm wondering if there is a way to integrate Spring Controllers into server processing method, I mean:
1) Into "client" I invoke methods from stadards mapping async services;
2) Related "Implementation" aren't standard Impl classes but Controllers (Spring mapped), from which I could call other beans, complete the processing and return response data to client Callback;
Any hint?
Thanks a lot,
Luca.
Comment