Package com.sun.faces.application.view
Class ViewHandlingStrategy
java.lang.Object
jakarta.faces.view.ViewDeclarationLanguage
com.sun.faces.application.view.ViewHandlingStrategy
- Direct Known Subclasses:
FaceletViewHandlingStrategy
,JspViewHandlingStrategy
public abstract class ViewHandlingStrategy extends ViewDeclarationLanguage
This represents how a particular page description language is to be rendered/restored.
-
Field Summary
Fields Modifier and Type Field Description protected ApplicationAssociate
associate
protected WebConfiguration
webConfig
Fields inherited from class jakarta.faces.view.ViewDeclarationLanguage
FACELETS_VIEW_DECLARATION_LANGUAGE_ID, JSP_VIEW_DECLARATION_LANGUAGE_ID
-
Constructor Summary
Constructors Constructor Description ViewHandlingStrategy()
-
Method Summary
Modifier and Type Method Description UIViewRoot
createView(FacesContext ctx, String viewId)
Create aUIViewRoot
from the VDL contained in the artifact referenced by the argumentviewId
.abstract boolean
handlesViewId(String viewId)
UIViewRoot
restoreView(FacesContext ctx, String viewId)
Restore aUIViewRoot
from a previously created view.Methods inherited from class jakarta.faces.view.ViewDeclarationLanguage
buildView, calculateResourceLibraryContracts, createComponent, getComponentMetadata, getId, getScriptComponentResource, getStateManagementStrategy, getViewMetadata, getViews, getViews, renderView, retargetAttachedObjects, retargetMethodExpressions, viewExists
-
Field Details
-
Constructor Details
-
ViewHandlingStrategy
public ViewHandlingStrategy()
-
-
Method Details
-
restoreView
Description copied from class:ViewDeclarationLanguage
Restore a
UIViewRoot
from a previously created view. See section JSF.7.7.2 for the specification of the default implementation.- Specified by:
restoreView
in classViewDeclarationLanguage
- Parameters:
ctx
- theFacesContext
for this request.viewId
- the identifier for a previously rendered view.- Returns:
- the restored view
- See Also:
ViewDeclarationLanguage.restoreView(jakarta.faces.context.FacesContext, String)
-
createView
Description copied from class:ViewDeclarationLanguage
Create a
UIViewRoot
from the VDL contained in the artifact referenced by the argumentviewId
. See section JSF.7.7.2 for the specification of the default implementation.- Specified by:
createView
in classViewDeclarationLanguage
- Parameters:
ctx
- theFacesContext
for this request.viewId
- the identifier of an artifact that contains the VDL syntax that describes this view.- Returns:
- the newly created view root
- See Also:
ViewDeclarationLanguage.createView(jakarta.faces.context.FacesContext, String)
-
handlesViewId
- Parameters:
viewId
- the view ID- Returns:
true
if thisViewHandlingStrategy
handles the the view type represented byviewId
-