Spring framework, an open source Java EE based application framework has come a long way from just being an inversion of control (IOC) container. With Spring 3.0 introducing RESTful web services in its Model-View-Controller (MVC) layer, it has provided a consummate extension for building Web 2.0 applications. Amalgamated with Dojo widgets, Rich Internet Application (RIA) can be rapidly build and tested. The paper demonstrates how a use case such as server side pagination can be designed and developed using Dojo widgets and RESTful service implementation using Spring 3.0.
Many other articles on Spring framework has already highlighted the advantages of using Spring as the ideal framework for web applications. There are also articles that focus on how RESTful services can be build with Spring 3.0. This articles show cases how the two open source modules - Dojo toolkit and Spring 3.0, can be employed to supplement each other in delivering a Rich Internet Application (RIA).
The following Dojo Toolkit 1.6 widgets are used in the
example that depicts server side pagination
The following custom widget was build to support server side pagination
Representation State Transfer (REST) is a client server architecture that uses HTTP based request ad response to represent state of a resource. It is stateless. The resources are identified by URIs. The information is represented either in HTML, XML or JSON.
In the example used in this blog the following REST URI are illustrated
- /ccmslist to fetch client name list, defaults to first page.
- /ccmslist/page/<page number> to fetch by page number.
- /ccmslist/page/<page number>/search/<search text> to search by client name.