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 ApplicationAssociateassociateprotected WebConfigurationwebConfigFields 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 UIViewRootcreateView(FacesContext ctx, String viewId)Create aUIViewRootfrom the VDL contained in the artifact referenced by the argumentviewId.abstract booleanhandlesViewId(String viewId)UIViewRootrestoreView(FacesContext ctx, String viewId)Restore aUIViewRootfrom 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:ViewDeclarationLanguageRestore a
UIViewRootfrom a previously created view. See section JSF.7.7.2 for the specification of the default implementation.- Specified by:
restoreViewin classViewDeclarationLanguage- Parameters:
ctx- theFacesContextfor 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:ViewDeclarationLanguageCreate a
UIViewRootfrom 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:
createViewin classViewDeclarationLanguage- Parameters:
ctx- theFacesContextfor 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:
trueif thisViewHandlingStrategyhandles the the view type represented byviewId
-