1 14 15 package com.sun.facelets; 16 17 import java.io.IOException ; 18 import java.net.URL ; 19 20 import javax.el.ELContext; 21 import javax.el.ELException; 22 import javax.el.ExpressionFactory; 23 import javax.el.FunctionMapper; 24 import javax.el.VariableMapper; 25 import javax.faces.FacesException; 26 import javax.faces.component.UIComponent; 27 import javax.faces.context.FacesContext; 28 29 35 public abstract class FaceletContext extends ELContext { 36 37 42 public abstract FacesContext getFacesContext(); 43 44 50 public abstract String generateUniqueId(String base); 51 52 58 public abstract ExpressionFactory getExpressionFactory(); 59 60 65 public abstract void setVariableMapper(VariableMapper varMapper); 66 67 72 public abstract void setFunctionMapper(FunctionMapper fnMapper); 73 74 80 public abstract void setAttribute(String name, Object value); 81 82 88 public abstract Object getAttribute(String name); 89 90 101 public abstract void includeFacelet(UIComponent parent, String relativePath) 102 throws IOException , FaceletException, FacesException, ELException; 103 104 115 public abstract void includeFacelet(UIComponent parent, URL absolutePath) 116 throws IOException , FaceletException, FacesException, ELException; 117 118 123 public abstract void pushClient(TemplateClient client); 124 125 129 public abstract void popClient(TemplateClient client); 130 131 132 public abstract void extendClient(TemplateClient client); 133 134 147 public abstract boolean includeDefinition(UIComponent parent, String name) throws IOException , FaceletException, FacesException, ELException ; 148 } 149 | Popular Tags |