public class MockDefaultViewDeclarationLanguage extends javax.faces.view.ViewDeclarationLanguage
Modifier and Type | Field and Description |
---|---|
static String |
DUMMY_VIEW_CREATE_HOOK |
static String |
DUMMY_VIEW_RESTORE_HOOK |
FACELETS_VIEW_DECLARATION_LANGUAGE_ID, JSP_VIEW_DECLARATION_LANGUAGE_ID
Constructor and Description |
---|
MockDefaultViewDeclarationLanguage() |
Modifier and Type | Method and Description |
---|---|
void |
buildView(FacesContext context,
UIViewRoot view) |
protected String |
calculateViewId(FacesContext context,
String viewId)
Calculates the effective view identifier for the specified raw view identifier.
|
protected void |
checkNull(Object o,
String param) |
UIViewRoot |
createView(FacesContext context,
String viewId) |
BeanInfo |
getComponentMetadata(FacesContext context,
Resource componentResource) |
Resource |
getScriptComponentResource(FacesContext context,
Resource componentResource) |
javax.faces.view.StateManagementStrategy |
getStateManagementStrategy(FacesContext context,
String viewId) |
javax.faces.view.ViewMetadata |
getViewMetadata(FacesContext context,
String viewId) |
static void |
hookCreateView(FacesContext context,
UIViewRoot root)
Hook the passed instance on UIViewRoot, storing into facesContext attribute map,
so the next call to createView() will return that value.
|
static void |
hookRestoreView(FacesContext context,
UIViewRoot root)
Hook the passed instance on UIViewRoot, storing into facesContext attribute map,
so the next call to createView() will return that value.
|
void |
renderView(FacesContext context,
UIViewRoot view) |
UIViewRoot |
restoreView(FacesContext context,
String viewId) |
protected void |
sendSourceNotFound(FacesContext context,
String message) |
calculateResourceLibraryContracts, createComponent, getId, retargetAttachedObjects, retargetMethodExpressions, viewExists
public static final String DUMMY_VIEW_CREATE_HOOK
public static final String DUMMY_VIEW_RESTORE_HOOK
public void buildView(FacesContext context, UIViewRoot view) throws IOException
buildView
in class javax.faces.view.ViewDeclarationLanguage
IOException
public UIViewRoot createView(FacesContext context, String viewId)
createView
in class javax.faces.view.ViewDeclarationLanguage
protected String calculateViewId(FacesContext context, String viewId)
context
- le current FacesContextviewId
- the raw view identifierprotected void sendSourceNotFound(FacesContext context, String message)
public static void hookCreateView(FacesContext context, UIViewRoot root)
context
- root
- public static void hookRestoreView(FacesContext context, UIViewRoot root)
context
- root
- public BeanInfo getComponentMetadata(FacesContext context, Resource componentResource)
getComponentMetadata
in class javax.faces.view.ViewDeclarationLanguage
public Resource getScriptComponentResource(FacesContext context, Resource componentResource)
getScriptComponentResource
in class javax.faces.view.ViewDeclarationLanguage
public javax.faces.view.StateManagementStrategy getStateManagementStrategy(FacesContext context, String viewId)
getStateManagementStrategy
in class javax.faces.view.ViewDeclarationLanguage
public javax.faces.view.ViewMetadata getViewMetadata(FacesContext context, String viewId)
getViewMetadata
in class javax.faces.view.ViewDeclarationLanguage
public void renderView(FacesContext context, UIViewRoot view) throws IOException
renderView
in class javax.faces.view.ViewDeclarationLanguage
IOException
public UIViewRoot restoreView(FacesContext context, String viewId)
restoreView
in class javax.faces.view.ViewDeclarationLanguage
Copyright © 2020 The Apache Software Foundation. All rights reserved.