|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.context.support.ApplicationObjectSupport org.springframework.web.context.support.WebApplicationObjectSupport org.springframework.web.servlet.view.AbstractView org.springframework.web.servlet.view.AbstractUrlBasedView org.springframework.web.servlet.view.InternalResourceView de.mindmatters.faces.spring.context.servlet.AbstractFacesView
Abstract view for a JSP or other resource within the same faces web application.
Rendering is delegated to the concrete implementation.
UIViewRoot
creation is done by this class (if
not already created by other components such as a NavigationHandler). If the
view root is already created by another component, the URL
of
this FacesView should be null
, so that view
creation will be suppressed.
Field Summary |
Fields inherited from class org.springframework.web.servlet.view.AbstractView |
DEFAULT_CONTENT_TYPE |
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
logger |
Constructor Summary | |
AbstractFacesView()
Constructor for use as a bean. |
|
AbstractFacesView(java.lang.String url)
Create a new FacesView with the given URL. |
Method Summary | |
protected void |
createView(FacesContext context)
Creates a UIViewRoot only if the current url is not
null (Urls for faces views may be null in
cases of null -outcomes, validation or conversion errors
etc.). |
protected java.lang.String |
prepareForRendering(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Must not be overridden. |
protected abstract void |
render(FacesContext context)
Renders the view if the response not already completed. |
protected void |
renderMergedOutputModel(java.util.Map model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected boolean |
useInclude(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Always returns true . |
Methods inherited from class org.springframework.web.servlet.view.InternalResourceView |
exposeHelpers, exposeModelAsRequestAttributes |
Methods inherited from class org.springframework.web.servlet.view.AbstractUrlBasedView |
afterPropertiesSet, getUrl, setUrl, toString |
Methods inherited from class org.springframework.web.servlet.view.AbstractView |
addStaticAttribute, createRequestContext, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute |
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
getServletContext, getTempDir, getWebApplicationContext, isContextRequired |
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AbstractFacesView()
public AbstractFacesView(java.lang.String url)
url
- the URL to forward toMethod Detail |
protected final boolean useInclude(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
true
.
request
- current HTTP requestresponse
- current HTTP response
true
protected final java.lang.String prepareForRendering(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
request
- current HTTP requestresponse
- current HTTP response
java.lang.Exception
- if preparations failed#prepareForRendering(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
protected final void renderMergedOutputModel(java.util.Map model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
protected void createView(FacesContext context)
UIViewRoot
only if the current url is not
null
(Urls for faces views may be null
in
cases of null
-outcomes, validation or conversion errors
etc.).
context
- current FacesContextprotected abstract void render(FacesContext context)
context
- current FacesContextFacesContext.getResponseComplete()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |