Sep 14, 2018

JSF Expression Language (EL) Implicit Objects

JSF Expression Language (EL) Implicit Objects

  1. facesContext: an instance of FacesContext. FacesContext contains all of the per-request state information related to the processing of a single JavaServer Faces request, and the rendering of the corresponding response.
  2. application: an instance of the ServletContext. A ServletContext instance provides access to the execution environment i.e. the servlet container.
  3. initParam: A Map of the initialization parameters of this web application.
  4. session: an instance of HttpSession.  A HttpSession can be used to bind objects, get  information about a session, such as the session identifier, creation time, and last accessed time. Session information is scoped only to the current web application (ServletContext), so information stored in one context will not be directly visible in another 
  5. view: The current UIViewRoot for this view. UIViewRoot is the UIComponent that represents the root of the UIComponent tree.
  6. component: The UIComponent instance being currently processed at the time of evaluation.
  7. cc: The top-level composite component currently being processed.
  8. request: an instance of HttpServletRequest.
  9. applicationScope: A Map (name and value) of all application scope attributes.
  10. sessionScope: A Map (name and value) of all attributes in the current session.
  11. viewScope: A Map (name and value) of all attributes in the current view scope.
  12. requestScope: A Map (name and value) of all attributes in the current request being processed.
  13. flowScope:*   #{flowScope}, for flow local storage. This maps to facesContext.getApplication().getFlowHandler().getCurrentFlowScope().
  14. flash: A Map for forwarding  temporary objects between the user/next views generated by the faces lifecycle or the current view using #{falsh.now} (see flash.putNow( ..)).
  15. param: A Map (name and value) of HTTP request parameters, containing only the first value for each name.
  16. paramValues: A Map of HTTP request parameters, yielding a String[] array of all values for a given name.
  17. header: A Map of HTTP header parameters for the current request.
  18. headerValues: A Map of HTTP header parameters for the current request, yielding a String[] array of all values for a given name.
  19. cookie: A Map of the cookie names and values of the current request.
  20. resource: A Map of application resources.
  21. pageContext  ${pageContext.request.contextPath}