java.lang.Object
jakarta.faces.view.ViewDeclarationLanguage
com.sun.faces.application.view.ViewHandlingStrategy
- Direct Known Subclasses:
FaceletViewHandlingStrategy
This represents how a particular page description language is to be rendered/restored.
-
Field Summary
Fields inherited from class jakarta.faces.view.ViewDeclarationLanguage
FACELETS_VIEW_DECLARATION_LANGUAGE_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateView
(FacesContext ctx, String viewId) Create aUIViewRoot
from the VDL contained in the artifact referenced by the argumentviewId
.abstract boolean
handlesViewId
(String viewId) 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
-
associate
-
webConfig
-
-
Constructor Details
-
ViewHandlingStrategy
public ViewHandlingStrategy()
-
-
Method Details
-
restoreView
Description copied from class:ViewDeclarationLanguage
Restore a
UIViewRoot
from 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:
restoreView
in classViewDeclarationLanguage
- Parameters:
ctx
- theFacesContext
for this request.viewId
- the identifier for a previously rendered view.- Returns:
- the restored view
- See Also:
-
createView
Description copied from class:ViewDeclarationLanguage
Create a
UIViewRoot
from 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:
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:
-
handlesViewId
- Parameters:
viewId
- the view ID- Returns:
true
if thisViewHandlingStrategy
handles the the view type represented byviewId
-