GWTruts-0.8-Final is finally out.
The most important feature in this release is the ability to have
controllers inside spring as normal spring beans.
This feature omits the need to work with RPC in Spring base
solutions.
Anytime GWT clients wants to work with server it "navigates" to the
spring based controller.The controller then fill the model based on
the post values and calls the next view inside the client-side code.
This schema is a possible scenario:
A spring based controller is called --> It calls an injected spring
based service
--> Controller puts the result in the model --> controller returns a
ModelAndView that has the name of next view
--> A view with that name (inside gwt client) is called and the model
is passed.
A Simple Controller in spring might look like this:
public class MyController extends BasicController{
private HelloService helloService;
@Override
public ModelAndView handleRequest(Map post, Map sharedModel) {
model.put("sayWhat", helloService.getSayWhat());
return new ModelAndView("nextViewName",model);
}
public void setHelloService (HelloService helloService) …
public HelloService getHelloService() …
}
And the spring configuration:
<bean id="myController"
class="com.yourcompany.webapp.controller.MyController"
autowire="byName"/>
This release was in Beta for more than 2 months and it is production
ready.
For more information please visit:
http://apps.sourceforge.net/trac/gwtruts/wiki
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---