org.apache.myfaces.shared_tomahawk.view
Class ViewDeclarationLanguageBase
java.lang.Object
javax.faces.view.ViewDeclarationLanguage
org.apache.myfaces.shared_tomahawk.view.ViewDeclarationLanguageBase
- Direct Known Subclasses:
- JspViewDeclarationLanguageBase
public abstract class ViewDeclarationLanguageBase
- extends javax.faces.view.ViewDeclarationLanguage
- Since:
- 2.0
- Version:
- $Revision: 1187700 $ $Date: 2011-10-22 07:19:37 -0500 (Sat, 22 Oct 2011) $
- Author:
- Simon Lessard (latest modification by $Author: bommel $)
Fields inherited from class javax.faces.view.ViewDeclarationLanguage |
FACELETS_VIEW_DECLARATION_LANGUAGE_ID, JSP_VIEW_DECLARATION_LANGUAGE_ID |
Method Summary |
protected abstract String |
calculateViewId(javax.faces.context.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 . |
javax.faces.component.UIViewRoot |
createView(javax.faces.context.FacesContext context,
String viewId)
Process the specification required algorithm that is generic to all PDL. |
javax.faces.component.UIViewRoot |
restoreView(javax.faces.context.FacesContext context,
String viewId)
|
protected abstract void |
sendSourceNotFound(javax.faces.context.FacesContext context,
String message)
Send a source not found to the client. |
Methods inherited from class javax.faces.view.ViewDeclarationLanguage |
buildView, getComponentMetadata, getId, getScriptComponentResource, getStateManagementStrategy, getViewMetadata, renderView, retargetAttachedObjects, retargetMethodExpressions, viewExists |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewDeclarationLanguageBase
public ViewDeclarationLanguageBase()
createView
public javax.faces.component.UIViewRoot createView(javax.faces.context.FacesContext context,
String viewId)
- Process the specification required algorithm that is generic to all PDL.
- Specified by:
createView
in class javax.faces.view.ViewDeclarationLanguage
- Parameters:
context
- viewId
-
restoreView
public javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context,
String viewId)
-
- Specified by:
restoreView
in class javax.faces.view.ViewDeclarationLanguage
calculateViewId
protected abstract String calculateViewId(javax.faces.context.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(javax.faces.context.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 --> JSF tree link, not the transport layer required to send a
SC_NOT_FOUND.
- Parameters:
context
- le current FacesContextmessage
- the message associated with the error
checkNull
protected void checkNull(Object o,
String param)
- Check if the specified value of a param is
null
.
- Parameters:
o
- the parameter's valueparam
- the parameter's name
- Throws:
NullPointerException
- if the value is null
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.