Building next-gen web applications with the spring 3.0 stack
Today i joined a session about using the Spring 3.0 web stack.
Release of spring 3.0 is expected in late august. RC1 will be available next week.
By Keith Donald and Jeremy Grelle

The spring 3.0 webstack exists of:
- Spring Faces
- Spring BlazeD integration
-Integration with adobe Flex clients - Spring WebFlow
- Spring JavaScript
-Ajax and JavaScript/JSON integration
-Integrated the DOJO toolkit
-provides client side validation - Spring Security
- Spring framework and Spring MVC
Restful @MVC is the preferred controller model for spring MVC 3.0. Promotes organization of services around logical resources.
Java @Controllers control access to resources. @Controllers delegate to views to render resource representations.
Key elements of REST in @MVC
- URI Templates
Map unique URLs to resources - Uniform interface
honor the semantics of HTTP verbs - Content negotiation
provide multiple presentations for a resource
Use the ContentNegotiatingViewResolver for handling REST requests in Spring 3.0
Example
@RequestMapping("/hotels/{id}",method=GET)
public Hotel show(@PathVariable Long id){
return bookingService.findHotelById(id)
}
Another Example

The spring 3.0 javascript API supports 3 types of decorations:
- Widget Decoration (for DOJO widgets)
- AjaxEventDecoration
- ValidateAllDecoration
Example of AJAX with partial Rendering:

New to webflow 3.0
- Extends @Controller model
- Define stateful UI flow control using plain java
- Will be backwards compatible with webflow 2.0 !!!
-@Flow, @Input, @Transition ,.. annotations
Example:

You must be logged in to post a comment.