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 9SCOPES

JSF 1.2 provided only three scopes: request, session, and application. The session scope was used in applications that required a scope greater than request, but less than session. The request scope was too limited for some applications, such as a command button or a link to update or delete in a request-scoped page. The request scope was also limited in Faces redirects, which started a new request. JSF 2.0 has introduced three new scopes: view, flash, and custom. The view and flash scopes in JSF 2.0 fill in the requirement for an intermediate scope managed bean.

Another limitation in JSF 1.2 is the requirement for too much configuration in faces-config.xml for managed beans, managed properties, converters, validators, renderers, ...

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