Package org.apache.myfaces.view
Class ViewDeclarationLanguageBase
- java.lang.Object
-
- jakarta.faces.view.ViewDeclarationLanguage
-
- org.apache.myfaces.view.ViewDeclarationLanguageBase
-
- Direct Known Subclasses:
FaceletViewDeclarationLanguageBase
public abstract class ViewDeclarationLanguageBase extends ViewDeclarationLanguage
- Since:
- 2.0
-
-
Field Summary
-
Fields inherited from class jakarta.faces.view.ViewDeclarationLanguage
FACELETS_VIEW_DECLARATION_LANGUAGE_ID
-
-
Constructor Summary
Constructors Constructor Description ViewDeclarationLanguageBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
calculateViewId(FacesContext context, String viewId)
Calculates the effective view identifier for the specified raw view identifier.UIViewRoot
createView(FacesContext context, String viewId)
Process the specification required algorithm that is generic to all PDL.protected RenderKitFactory
getRenderKitFactory()
UIViewRoot
restoreView(FacesContext context, String viewId)
protected abstract void
sendSourceNotFound(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
-
-
-
-
Method Detail
-
createView
public UIViewRoot createView(FacesContext context, String viewId)
Process the specification required algorithm that is generic to all PDL.- Specified by:
createView
in classViewDeclarationLanguage
- Parameters:
context
-viewId
-
-
restoreView
public UIViewRoot restoreView(FacesContext context, String viewId)
- Specified by:
restoreView
in classViewDeclarationLanguage
-
calculateViewId
protected abstract String calculateViewId(FacesContext context, String viewId)
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
protected abstract void sendSourceNotFound(FacesContext context, String message)
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
protected RenderKitFactory getRenderKitFactory()
-
-