Sep 14, 2018

Implicit Objects in JSF

Implicit Objects in JSF

Implicit Objects in JSF
Implicit ObjectWhat It Is
applicationScope
Map of the application scope attribute values, keyed by attribute name
cookie
Map of the cookie values for the current request, keyed by cookie name
facesContext
The FacesContext instance for the current request
header
Map of HTTP header values for the current request, keyed by header name
headerValues
Map of String arrays containing all the header values for HTTP headers in the current request, keyed by header name
initParam
Map of the context initialization parameters for this web application
param
Map of the request parameters for this request, keyed by parameter name
paramValues
Map of String arrays containing all the parameter values for request parameters in the current request, keyed by parameter name
requestScope
Map of the request attributes for this request, keyed by attribute name
sessionScope
Map of the session attributes for this request, keyed by attribute name
view
The root UIComponent in the current component tree stored in the FacesRequest for this request

Usage example:

 #{param.id}

All of the implicit objects, except for the scope objects, are read-only and therefore should not be used as a value for a UIInput component.