Package org.apache.myfaces.view.jsp
Class JspViewDeclarationLanguage
- java.lang.Object
-
- javax.faces.view.ViewDeclarationLanguage
-
- org.apache.myfaces.view.ViewDeclarationLanguageBase
-
- org.apache.myfaces.view.jsp.JspViewDeclarationLanguageBase
-
- org.apache.myfaces.view.jsp.JspViewDeclarationLanguage
-
public class JspViewDeclarationLanguage extends JspViewDeclarationLanguageBase
- Since:
- 2.0
- Version:
- $Revision$ $Date$
- Author:
- Simon Lessard (latest modification by $Author$)
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
FACELETS_ONLY_F_TAGS
Tags that are only available on facelets and not on JSP.static String[]
FACELETS_ONLY_H_TAGS
static Logger
log
-
Fields inherited from class javax.faces.view.ViewDeclarationLanguage
FACELETS_VIEW_DECLARATION_LANGUAGE_ID, JSP_VIEW_DECLARATION_LANGUAGE_ID
-
-
Constructor Summary
Constructors Constructor Description JspViewDeclarationLanguage()
JspViewDeclarationLanguage(FacesContext facesContext, ViewDeclarationLanguageStrategy strategy, LinkedList<String> suffixes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildView(FacesContext context, UIViewRoot view)
Stream<String>
getViews(FacesContext facesContext, String path, int maxDepth, ViewVisitOption... options)
protected boolean
isViewStateAlreadyEncoded(FacesContext context)
protected void
sendSourceNotFound(FacesContext context, String message)
Send a source not found to the client.boolean
viewExists(FacesContext facesContext, String viewId)
-
Methods inherited from class org.apache.myfaces.view.jsp.JspViewDeclarationLanguageBase
actuallyRenderView, calculateViewId, flushBufferToWriter, getComponentMetadata, getId, getScriptComponentResource, getStateManagementStrategy, getViewMetadata, isViewBuilt, renderView, setAfterViewTagResponseWrapper, setViewBuilt, writePartialBuffer
-
Methods inherited from class org.apache.myfaces.view.ViewDeclarationLanguageBase
createView, restoreView
-
Methods inherited from class javax.faces.view.ViewDeclarationLanguage
calculateResourceLibraryContracts, createComponent, getViews, retargetAttachedObjects, retargetMethodExpressions
-
-
-
-
Field Detail
-
log
public static final Logger log
-
FACELETS_ONLY_F_TAGS
public static final String[] FACELETS_ONLY_F_TAGS
Tags that are only available on facelets and not on JSP. If a user uses one of these tags on a JSP, we will provide a more informative error message than the standard one.
-
FACELETS_ONLY_H_TAGS
public static final String[] FACELETS_ONLY_H_TAGS
-
-
Constructor Detail
-
JspViewDeclarationLanguage
public JspViewDeclarationLanguage()
-
JspViewDeclarationLanguage
public JspViewDeclarationLanguage(FacesContext facesContext, ViewDeclarationLanguageStrategy strategy, LinkedList<String> suffixes)
-
-
Method Detail
-
buildView
public void buildView(FacesContext context, UIViewRoot view) throws IOException
- Overrides:
buildView
in classJspViewDeclarationLanguageBase
- Throws:
IOException
-
isViewStateAlreadyEncoded
protected boolean isViewStateAlreadyEncoded(FacesContext context)
- Overrides:
isViewStateAlreadyEncoded
in classJspViewDeclarationLanguageBase
-
sendSourceNotFound
protected void sendSourceNotFound(FacesContext context, String message)
Description copied from class:ViewDeclarationLanguageBase
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.- Specified by:
sendSourceNotFound
in classViewDeclarationLanguageBase
- Parameters:
context
- le current FacesContextmessage
- the message associated with the error
-
viewExists
public boolean viewExists(FacesContext facesContext, String viewId)
- Overrides:
viewExists
in classViewDeclarationLanguage
-
getViews
public Stream<String> getViews(FacesContext facesContext, String path, int maxDepth, ViewVisitOption... options)
- Overrides:
getViews
in classViewDeclarationLanguage
-
-