ajax - Experiences with integrating spring 3 mvc with GWT? -
given: spring 3.0 mvc has excellent rest support 1 of representation being json.
gwt simplifies development ui developed in java. default uses rpc client server interaction. there option use json.
questions:
can share experiences using spring 3.0 mvc gwt ?
what best approach integrate these 2 frameworks?
is default gwt's mvp architecture client side , work json?
thanks
can share experiences using spring 3.0 mvc gwt ?
yes. we've built whole large application around gwt , spring mvc (1500 source files, 6 months in development).
spring key project's success. spring able test individually pieces of application on server side.
what best approach marry these 2 frameworks?
ignore default servlet used gwt , instead create own spring controller handle incoming gwt-rpc requests. blog post key integrating 2 techs.
we integrated other components: flash animated charts , third-party javascript components other stuff. these communicate server through json. have 2 or more kinds of urls:
- the
*.rpc
urls gwt components , served spring controller gwt - the
*.json
urls other components , served spring controller.
also, in our case, shunned configuration annotations , instead preferred configuration old spring xml files. make more clear what's going on. except @required
annotation; it's great find spring beans should connected aren't.
is default gwt's mvp architecture client side , work json?
gwt's mvp architecture works best if follow guide lines. use gwt-rpc communication google suggests.
you can still have json other client-side components.
Comments
Post a Comment