public class CafViewDeclarationLanguage extends ViewDeclarationLanguage
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_CHARACTER_ENCODING |
static String |
INIT_PARAM_CACHE |
protected Map<String,ViewBuilder> |
m_builders |
protected SAXParserFactory |
m_parserFactory |
protected Boolean |
m_useCache |
protected static int |
MAX_VIEWS |
protected com.sun.faces.config.WebConfiguration |
webConfig |
FACELETS_VIEW_DECLARATION_LANGUAGE_ID, JSP_VIEW_DECLARATION_LANGUAGE_ID
Constructor and Description |
---|
CafViewDeclarationLanguage() |
calculateResourceLibraryContracts, createComponent, getId, retargetAttachedObjects, retargetMethodExpressions, viewExists
public static final String INIT_PARAM_CACHE
protected static final int MAX_VIEWS
protected Map<String,ViewBuilder> m_builders
protected Boolean m_useCache
protected static final String DEFAULT_CHARACTER_ENCODING
protected SAXParserFactory m_parserFactory
protected com.sun.faces.config.WebConfiguration webConfig
public void buildView(FacesContext ctx, UIViewRoot root) throws IOException
buildView
in class ViewDeclarationLanguage
IOException
public UIViewRoot createView(FacesContext ctx, String viewId)
createView
in class ViewDeclarationLanguage
public void renderView(FacesContext ctx, UIViewRoot viewToRender) throws IOException
renderView
in class ViewDeclarationLanguage
IOException
public UIViewRoot restoreView(FacesContext ctx, String viewId)
restoreView
in class ViewDeclarationLanguage
protected ResponseWriter initResponse(FacesContext ctx, UIViewRoot root) throws IOException, FacesException
IOException
FacesException
public BeanInfo getComponentMetadata(FacesContext facesContext, Resource resource)
getComponentMetadata
in class ViewDeclarationLanguage
public Resource getScriptComponentResource(FacesContext facesContext, Resource resource)
getScriptComponentResource
in class ViewDeclarationLanguage
public StateManagementStrategy getStateManagementStrategy(FacesContext facesContext, String viewId)
getStateManagementStrategy
in class ViewDeclarationLanguage
public ViewMetadata getViewMetadata(FacesContext facesContext, String viewId)
getViewMetadata
in class ViewDeclarationLanguage
public ViewBuilder getBuilderFromCache(String viewId)
public void putBuilderIntoCache(String viewId, ViewBuilder builder)
public void clearBuilderFromCache(String viewId)
public void clearBuilderCache()
public boolean useCache()
public ViewBuilder createBuilder(FacesContext ctx, String viewId)
protected SAXParser getParser(FacesContext ctx) throws ParserConfigurationException, SAXException
protected InputSource getInputSource(FacesContext ctx, String viewId)