Chapter 12. Ajaxing portlets

 

This chapter covers

  • Developing highly responsive portlets using Ajax
  • Serving resources with the ResourceServingPortlet interface
  • Sending resource requests with resource URLs
  • Resource serving support in Spring Portlet MVC
  • Pushing data with Comet (or Reverse Ajax)

Developing highly responsive portlets is crucial for an enriched user experience. In this chapter, we’ll see how Ajax can be used to that end. This chapter provides a gentle introduction to Ajax, and it should be sufficient if you’re new to Ajax. The chapter does, however, assume that you have a basic understanding of JavaScript, CSS, and DOM (the Document Object Model). If you’re new to JavaScript, CSS, and DOM, please refer to resources that cover these topics.

We’ll also look at how the ResourceServingPortlet interface provides Ajax support to portlets, and how you can secure Ajax requests in the portal world. The ResourceServingPortlet interface serves the dual purpose of handling Ajax requests and serving binary content, so we’ll also look at how to download a binary file from a portlet that implements the ResourceServingPortlet interface.

12.1. Ajax basics

 

12.2. Your first Ajax portlet

 
 

12.3. Securing Ajax requests

 
 

12.4. Ajax support in Portlet 2.0

 
 
 
 

12.5. Downloading binary content using portlets

 
 

12.6. Resource URLs and caching

 
 
 

12.7. Creating a rich interface for the Book Catalog portlet

 
 
 

12.8. Creating rich user interfaces using Ajax

 

12.9. Creating real-time portlets using Polling and Comet

 
 

12.10. Cross-domain Ajax

 
 
 

12.11. Ajax and inter-portlet communication

 
 

12.12. Summary

 
 
 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest