O'Reilly logo

JavaServer Faces by Hans Bergsten

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

Implicit Variables

All information about a request and other data can be accessed through the EL implicit variables:

Variable name

Description

requestScope

A collection (a java.util.Map) of all request scope variables.

sessionScope

A collection (a java.util.Map) of all session scope variables.

applicationScope

A collection (a java.util.Map) of all application scope variables.

param

A collection (a java.util.Map) of all request parameter values as a single String value per parameter.

paramValues

A collection (a java.util.Map) of all request parameter values as a String array per parameter.

header

A collection (a java.util.Map) of all request header values as a single String value per header.

headerValues

A collection (a java.util.Map) of all request header values as a String array per header.

cookie

A collection (a java.util.Map) of all request cookie values as a single javax.servlet.http.Cookie value per cookie. See Appendix D for a list of properties for the Cookie class.

initParam

A collection (a java.util.Map) of all application initialization parameter values as a single String value per parameter.

facesContext

An instance of the javax.faces.context.FacesContext class, providing access to various JSF context data.

view

An instance of the javax.faces.component.UIViewRoot class, providing access to all components in the current view.

Support for additional implicit variables can be implemented through a custom javax.faces.el.VariableResolver class. See ...

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