public abstract class JspViewDeclarationLanguageBase extends ViewDeclarationLanguageBase
FACELETS_VIEW_DECLARATION_LANGUAGE_ID, JSP_VIEW_DECLARATION_LANGUAGE_ID
Constructor and Description |
---|
JspViewDeclarationLanguageBase() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
actuallyRenderView(FacesContext facesContext,
UIViewRoot viewToRender)
Render the view now - properly setting and resetting the response writer
[MF] Modified to return a boolean so subclass that delegates can determine
whether the rendering succeeded or not.
|
void |
buildView(FacesContext context,
UIViewRoot view) |
protected String |
calculateViewId(FacesContext context,
String viewId)
Calculates the effective view identifier for the specified raw view identifier.
|
protected void |
flushBufferToWriter(StringBuffer buff,
Writer writer) |
BeanInfo |
getComponentMetadata(FacesContext context,
Resource componentResource) |
String |
getId() |
Resource |
getScriptComponentResource(FacesContext context,
Resource componentResource) |
StateManagementStrategy |
getStateManagementStrategy(FacesContext context,
String viewId) |
ViewMetadata |
getViewMetadata(FacesContext context,
String viewId) |
protected boolean |
isViewBuilt(FacesContext facesContext,
UIViewRoot view)
Returns true if the given UIViewRoot has already been built via VDL.buildView().
|
protected boolean |
isViewStateAlreadyEncoded(FacesContext context) |
void |
renderView(FacesContext context,
UIViewRoot view) |
protected void |
setAfterViewTagResponseWrapper(ExternalContext ec,
ViewResponseWrapper wrapper) |
protected void |
setViewBuilt(FacesContext facesContext,
UIViewRoot view)
Saves a flag in the attribute map of the FacesContext to indicate
that the given UIViewRoot was already built with VDL.buildView().
|
protected void |
writePartialBuffer(StringBuffer contentBuffer,
int beginIndex,
int endIndex,
Writer writer) |
checkNull, createView, restoreView, sendSourceNotFound
calculateResourceLibraryContracts, createComponent, retargetAttachedObjects, retargetMethodExpressions, viewExists
public String getId()
getId
in class ViewDeclarationLanguage
public void buildView(FacesContext context, UIViewRoot view) throws IOException
buildView
in class ViewDeclarationLanguage
IOException
public BeanInfo getComponentMetadata(FacesContext context, Resource componentResource)
getComponentMetadata
in class ViewDeclarationLanguage
public Resource getScriptComponentResource(FacesContext context, Resource componentResource)
getScriptComponentResource
in class ViewDeclarationLanguage
public void renderView(FacesContext context, UIViewRoot view) throws IOException
renderView
in class ViewDeclarationLanguage
IOException
public ViewMetadata getViewMetadata(FacesContext context, String viewId)
getViewMetadata
in class ViewDeclarationLanguage
protected boolean isViewStateAlreadyEncoded(FacesContext context)
protected void setAfterViewTagResponseWrapper(ExternalContext ec, ViewResponseWrapper wrapper)
protected void flushBufferToWriter(StringBuffer buff, Writer writer) throws IOException
IOException
protected void writePartialBuffer(StringBuffer contentBuffer, int beginIndex, int endIndex, Writer writer) throws IOException
IOException
protected boolean actuallyRenderView(FacesContext facesContext, UIViewRoot viewToRender) throws IOException
IOException
public StateManagementStrategy getStateManagementStrategy(FacesContext context, String viewId)
getStateManagementStrategy
in class ViewDeclarationLanguage
protected String calculateViewId(FacesContext context, String viewId)
ViewDeclarationLanguageBase
calculateViewId
in class ViewDeclarationLanguageBase
context
- le current FacesContextviewId
- the raw view identifierprotected boolean isViewBuilt(FacesContext facesContext, UIViewRoot view)
facesContext
- view
- protected void setViewBuilt(FacesContext facesContext, UIViewRoot view)
facesContext
- view
- Copyright © 2020 The Apache Software Foundation. All rights reserved.