Chapter 12. Spring JavaScript Quick Reference

Table of Contents

Introduction
Serving Javascript Resources
Including Spring Javascript in a Page
Spring Javascript Decorations
Handling Ajax Requests
Providing a Library-Specific AjaxHandler
Handling Ajax Requests with Spring MVC Controllers
Handling Ajax Requests with Spring MVC + Spring Web Flow

Introduction

Spring Javascript (spring-js) is a lightweight abstraction over common JavaScript toolkits such as Dojo. It aims to provide a common client-side programming model for progressively enhancing a web page with rich widget behavior and Ajax remoting.

Use of the Spring JS API is demonstrated in the the Spring MVC + Web Flow version of the Spring Travel reference application. In addition, the JSF components provided as part of the Spring Faces library build on Spring.js.