Package org.apache.myfaces.view
Class ViewDeclarationLanguageBase
java.lang.Object
jakarta.faces.view.ViewDeclarationLanguage
org.apache.myfaces.view.ViewDeclarationLanguageBase
- Direct Known Subclasses:
FaceletViewDeclarationLanguageBase
- Since:
- 2.0
-
Field Summary
Fields inherited from class jakarta.faces.view.ViewDeclarationLanguage
FACELETS_VIEW_DECLARATION_LANGUAGE_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringcalculateViewId(FacesContext context, String viewId) Calculates the effective view identifier for the specified raw view identifier.createView(FacesContext context, String viewId) Process the specification required algorithm that is generic to all PDL.protected RenderKitFactoryrestoreView(FacesContext context, String viewId) protected abstract voidsendSourceNotFound(FacesContext context, String message) Send a source not found to the client.Methods inherited from class jakarta.faces.view.ViewDeclarationLanguage
buildView, calculateResourceLibraryContracts, createComponent, getComponentMetadata, getId, getScriptComponentResource, getStateManagementStrategy, getViewMetadata, getViews, getViews, renderView, retargetAttachedObjects, retargetMethodExpressions, viewExists
-
Constructor Details
-
ViewDeclarationLanguageBase
public ViewDeclarationLanguageBase()
-
-
Method Details
-
createView
Process the specification required algorithm that is generic to all PDL.- Specified by:
createViewin classViewDeclarationLanguage- Parameters:
context-viewId-
-
restoreView
- Specified by:
restoreViewin classViewDeclarationLanguage
-
calculateViewId
Calculates the effective view identifier for the specified raw view identifier.- Parameters:
context- le current FacesContextviewId- the raw view identifier- Returns:
- the effective view identifier
-
sendSourceNotFound
Send a source not found to the client. Although it can be considered ok in JSP mode, I think it's pretty lame to have this kind of requirement at VDL level considering VDL represents the page --> Faces tree link, not the transport layer required to send a SC_NOT_FOUND.- Parameters:
context- le current FacesContextmessage- the message associated with the error
-
getRenderKitFactory
-