|
JSF-Spring | |||||||||
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.AbstractCachingViewResolver org.springframework.web.servlet.view.UrlBasedViewResolver de.mindmatters.faces.spring.context.servlet.FacesViewResolver
public class FacesViewResolver
Convenience subclass of UrlBasedViewResolver that supports FacesView
.
#createView(java.lang.String, java.util.Locale)
,
UrlBasedViewResolver.setViewClass(java.lang.Class)
Field Summary |
---|
Fields inherited from class org.springframework.web.servlet.view.UrlBasedViewResolver |
---|
FORWARD_URL_PREFIX, REDIRECT_URL_PREFIX |
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
---|
logger |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
FacesViewResolver()
Sets default viewClass to AbstractFacesView. |
Method Summary | |
---|---|
protected View |
createView(java.lang.String viewName,
java.util.Locale locale)
Overridden to implement check for "redirect:" prefix. |
protected java.lang.Class |
requiredViewClass()
Return the required type of view for this resolver. |
Methods inherited from class org.springframework.web.servlet.view.UrlBasedViewResolver |
---|
buildView, canHandle, getAttributesMap, getCacheKey, getContentType, getOrder, getPrefix, getRequestContextAttribute, getSuffix, getViewClass, getViewNames, initApplicationContext, isRedirectContextRelative, isRedirectHttp10Compatible, loadView, setAttributes, setAttributesMap, setContentType, setOrder, setPrefix, setRedirectContextRelative, setRedirectHttp10Compatible, setRequestContextAttribute, setSuffix, setViewClass, setViewNames |
Methods inherited from class org.springframework.web.servlet.view.AbstractCachingViewResolver |
---|
clearCache, isCache, removeFromCache, resolveViewName, setCache |
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
---|
getServletContext, getTempDir, getWebApplicationContext, isContextRequired, setServletContext |
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
---|
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FacesViewResolver()
UrlBasedViewResolver.setViewClass(java.lang.Class)
Method Detail |
---|
protected final java.lang.Class requiredViewClass()
requiredViewClass
in class UrlBasedViewResolver
AbstractUrlBasedView
protected final View createView(java.lang.String viewName, java.util.Locale locale) throws java.lang.Exception
Not possible in loadView
, since overridden
loadView
versions in subclasses might rely on the
superclass always creating instances of the required view class.
createView
in class UrlBasedViewResolver
viewName
- the name of the view to retrievelocale
- the Locale to retrieve the view for
null
if not found
(optional, to allow for ViewResolver chaining)
java.lang.Exception
- if the view couldn't be resolvedUrlBasedViewResolver.loadView(java.lang.String, java.util.Locale)
,
UrlBasedViewResolver.requiredViewClass()
|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |