Lab Notes

Things I want to remember how to do.

JSF EL Implicit Object Reference

March 9, 2015

Just collecting the implicit objects defined by the JSF 2.2 specification (section 5.6.2.1, table 5-11) which are available in the EL:

application
externalContext.getContext()
applicationScope
externalContext.getApplicationMap()
cookie
externalContext.getRequestCookieMap()
facesContext
the FacesContext for this request
component
the top of the stack of UIComponent instances, as pushed via calls to UIComponent.pushComponentToEL(). See Section 3.1.14 “Lifecycle Management Methods”
flowScope
facesContext.getApplication().getFlowHandler().getCurrentFlowScope()
cc
the current composite component relative to the declaring page in which the expression appears.
flash
externalContext.getFlash()
header
externalContext.getRequestHeaderMap()
headerValues
externalContext.getRequestHeaderValuesMap()
initParam
externalContext.getInitParameterMap()
param
externalContext.getRequestParameterMap()
paramValues
externalContext.getRequestParameterValuesMap()
request
externalContext.getRequest()
requestScope
externalContext.getRequestMap()
resource
facesContext.getApplication().getResourceHandler()
session
externalContext.getSession()
sessionScope
externalContext.getSessionMap()
view
facesContext.getViewRoot()
viewScope
facesContext.getViewRoot().getViewMap()
resource
facesContext.getApplication().getResourceHandler()