O'Reilly logo

JavaServer® Faces 2.0: Essential Guide for Developers by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 10RESOURCE HANDLING

A Web application commonly requires resources to run—associated files such as Java-Script, CSS, images, or other Facelets pages. JSF 2.0 has introduced the ResourceHandler API to serve resources. ResourceHandler defines a path-based packaging convention for resources. After ViewHandler has rendered a view and the browser has parsed the completely rendered page, the browser requests for the resources are included in the page. The Faces servlet invokes the ResourceHandler.isResourceRequest() method to determine if the request is for a resource. If the method returns true, the Faces servlet invokes the ResourceHandler.handleResourceRequest() method to handle the resource request. A resource is represented with the Resource ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required