Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.facelets
Class FaceletContext  view FaceletContext download FaceletContext.java

java.lang.Object
  extended byELContext
      extended bycom.sun.facelets.FaceletContext

public abstract class FaceletContext
extends ELContext

Context representative of a single request from a Facelet

Version:
$Id: FaceletContext.java,v 1.6 2006/03/29 04:10:11 jhook Exp $

Constructor Summary
FaceletContext()
           
 
Method Summary
abstract  void extendClient(TemplateClient client)
           
abstract  java.lang.String generateUniqueId(java.lang.String base)
          Generate a unique ID for the passed String
abstract  java.lang.Object getAttribute(java.lang.String name)
          Support method which is backed by the current VariableMapper
abstract  ExpressionFactory getExpressionFactory()
          The ExpressionFactory to use within the Facelet this context is executing upon.
abstract  javax.faces.context.FacesContext getFacesContext()
          The current FacesContext bound to this "request"
abstract  boolean includeDefinition(javax.faces.component.UIComponent parent, java.lang.String name)
          This method will walk through the TemplateClient stack to resolve and apply the definition for the passed name.
abstract  void includeFacelet(javax.faces.component.UIComponent parent, java.lang.String relativePath)
          Include another Facelet defined at some path, relative to the executing context, not the current Facelet (same as include directive in JSP)
abstract  void includeFacelet(javax.faces.component.UIComponent parent, java.net.URL absolutePath)
          Include another Facelet defined at some path, absolute to this ClassLoader/OS
abstract  void popClient(TemplateClient client)
          Pop the last added TemplateClient
abstract  void pushClient(TemplateClient client)
          Push the passed TemplateClient onto the stack for Definition Resolution
abstract  void setAttribute(java.lang.String name, java.lang.Object value)
          Support method which is backed by the current VariableMapper
abstract  void setFunctionMapper(FunctionMapper fnMapper)
          Set the FunctionMapper to use in EL evaluation/creation
abstract  void setVariableMapper(VariableMapper varMapper)
          Set the VariableMapper to use in EL evaluation/creation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaceletContext

public FaceletContext()
Method Detail

getFacesContext

public abstract javax.faces.context.FacesContext getFacesContext()
The current FacesContext bound to this "request"


generateUniqueId

public abstract java.lang.String generateUniqueId(java.lang.String base)
Generate a unique ID for the passed String


getExpressionFactory

public abstract ExpressionFactory getExpressionFactory()
The ExpressionFactory to use within the Facelet this context is executing upon.


setVariableMapper

public abstract void setVariableMapper(VariableMapper varMapper)
Set the VariableMapper to use in EL evaluation/creation


setFunctionMapper

public abstract void setFunctionMapper(FunctionMapper fnMapper)
Set the FunctionMapper to use in EL evaluation/creation


setAttribute

public abstract void setAttribute(java.lang.String name,
                                  java.lang.Object value)
Support method which is backed by the current VariableMapper


getAttribute

public abstract java.lang.Object getAttribute(java.lang.String name)
Support method which is backed by the current VariableMapper


includeFacelet

public abstract void includeFacelet(javax.faces.component.UIComponent parent,
                                    java.lang.String relativePath)
                             throws java.io.IOException,
                                    FaceletException,
                                    javax.faces.FacesException,
                                    ELException
Include another Facelet defined at some path, relative to the executing context, not the current Facelet (same as include directive in JSP)


includeFacelet

public abstract void includeFacelet(javax.faces.component.UIComponent parent,
                                    java.net.URL absolutePath)
                             throws java.io.IOException,
                                    FaceletException,
                                    javax.faces.FacesException,
                                    ELException
Include another Facelet defined at some path, absolute to this ClassLoader/OS


pushClient

public abstract void pushClient(TemplateClient client)
Push the passed TemplateClient onto the stack for Definition Resolution


popClient

public abstract void popClient(TemplateClient client)
Pop the last added TemplateClient


extendClient

public abstract void extendClient(TemplateClient client)

includeDefinition

public abstract boolean includeDefinition(javax.faces.component.UIComponent parent,
                                          java.lang.String name)
                                   throws java.io.IOException,
                                          FaceletException,
                                          javax.faces.FacesException,
                                          ELException
This method will walk through the TemplateClient stack to resolve and apply the definition for the passed name. If it's been resolved and applied, this method will return true.