Home » Mojarra-2.0.1 » javax.faces.view.facelets » [javadoc | source]
javax.faces.view.facelets
abstract public class: FaceletContext [javadoc | source]
java.lang.Object
   javax.el.ELContext
      javax.faces.view.facelets.FaceletContext

Context representative of a single request from a Facelet. This instance is passed to nearly every method call in this API.

Field Summary
public static final  String FACELET_CONTEXT_KEY     
Method from javax.faces.view.facelets.FaceletContext Summary:
generateUniqueId,   getAttribute,   getExpressionFactory,   getFacesContext,   includeFacelet,   includeFacelet,   setAttribute,   setFunctionMapper,   setVariableMapper
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.faces.view.facelets.FaceletContext Detail:
 abstract public String generateUniqueId(String base)

    Generate a unique ID for the passed String

 abstract public Object getAttribute(String name)

    Return an attribute set by a previous call to #setAttribute . Support method which is backed by the current VariableMapper

 abstract public ExpressionFactory getExpressionFactory()

    The ExpressionFactory to use within the Facelet this context is executing upon. Must not be null.

 abstract public FacesContext getFacesContext()

    The current FacesContext bound to this "request". Must not be null.

 abstract public  void includeFacelet(UIComponent parent,
    String relativePath) throws IOException

    Include another Facelet defined at some path, relative to the executing context, not the current Facelet (same as include directive in JSP)

 abstract public  void includeFacelet(UIComponent parent,
    URL absolutePath) throws IOException

    Include another Facelet defined at some path, absolute to this ClassLoader/OS

 abstract public  void setAttribute(String name,
    Object value)

    Support method which is backed by the current VariableMapper.

 abstract public  void setFunctionMapper(FunctionMapper fnMapper)

    Set the FunctionMapper to use in EL evaluation/creation.

 abstract public  void setVariableMapper(VariableMapper varMapper)

    Set the VariableMapper to use in EL evaluation/creation.