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
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 WebConfigurationwebConfig-
Fields inherited from class jakarta.faces.view.ViewDeclarationLanguage
FACELETS_VIEW_DECLARATION_LANGUAGE_ID
-
-
Constructor Summary
Constructors Constructor Description ViewHandlingStrategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods 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 Detail
-
associate
protected ApplicationAssociate associate
-
webConfig
protected WebConfiguration webConfig
-
-
Method Detail
-
restoreView
public UIViewRoot restoreView(FacesContext ctx, String viewId)
Description copied from class:ViewDeclarationLanguageRestore a
UIViewRootfrom a previously created view. See section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document 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
public UIViewRoot createView(FacesContext ctx, String viewId)
Description copied from class:ViewDeclarationLanguageCreate a
UIViewRootfrom the VDL contained in the artifact referenced by the argumentviewId. See section 7.7.2"Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document 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
public abstract boolean handlesViewId(String viewId)
- Parameters:
viewId- the view ID- Returns:
trueif thisViewHandlingStrategyhandles the the view type represented byviewId
-
-