public abstract class ViewDeclarationLanguageBase extends ViewDeclarationLanguage
FACELETS_VIEW_DECLARATION_LANGUAGE_ID, JSP_VIEW_DECLARATION_LANGUAGE_ID
Constructor and Description |
---|
ViewDeclarationLanguageBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
calculateViewId(FacesContext context,
String viewId)
Calculates the effective view identifier for the specified raw view identifier.
|
protected void |
checkNull(Object o,
String param)
Check if the specified value of a param is
null . |
UIViewRoot |
createView(FacesContext context,
String viewId)
Process the specification required algorithm that is generic to all PDL.
|
UIViewRoot |
restoreView(FacesContext context,
String viewId) |
protected abstract void |
sendSourceNotFound(FacesContext context,
String message)
Send a source not found to the client.
|
buildView, calculateResourceLibraryContracts, createComponent, getComponentMetadata, getId, getScriptComponentResource, getStateManagementStrategy, getViewMetadata, renderView, retargetAttachedObjects, retargetMethodExpressions, viewExists
public UIViewRoot createView(FacesContext context, String viewId)
createView
in class ViewDeclarationLanguage
context
- viewId
- public UIViewRoot restoreView(FacesContext context, String viewId)
restoreView
in class ViewDeclarationLanguage
protected abstract String calculateViewId(FacesContext context, String viewId)
context
- le current FacesContextviewId
- the raw view identifierprotected abstract void sendSourceNotFound(FacesContext context, String message)
context
- le current FacesContextmessage
- the message associated with the errorprotected void checkNull(Object o, String param)
null
.o
- the parameter's valueparam
- the parameter's nameNullPointerException
- if the value is null
Copyright © 2020 The Apache Software Foundation. All rights reserved.