SourceForge.net Logo

de.mindmatters.faces.spring.context.servlet
Class FacesExternalResourceView

java.lang.Object
  extended byorg.springframework.context.support.ApplicationObjectSupport
      extended byorg.springframework.web.context.support.WebApplicationObjectSupport
          extended byorg.springframework.web.servlet.view.AbstractView
              extended byorg.springframework.web.servlet.view.AbstractUrlBasedView
                  extended byorg.springframework.web.servlet.view.InternalResourceView
                      extended byde.mindmatters.faces.spring.context.servlet.AbstractFacesView
                          extended byde.mindmatters.faces.spring.context.servlet.FacesExternalResourceView
All Implemented Interfaces:
ApplicationContextAware, BeanNameAware, InitializingBean, View

public class FacesExternalResourceView
extends AbstractFacesView

This view is used (and usually created by the FacesViewResolver) to render the view given the specified model.

More precisely this view is used to render the model (respectively the ModelAndView) delivered from proprietary Controller (e.g. Spring's MVC Controller).

Author:
Andreas Kuhrwahl
See Also:
#createView(String, java.util.Locale), #buildView(String)

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
FacesExternalResourceView()
          Constructor for use as a bean.
FacesExternalResourceView(java.lang.String url)
          Creates a new FacesView with the given URL.
 
Method Summary
protected  void render(FacesContext context)
          Renders the view if the response not already completed.
 
Methods inherited from class de.mindmatters.faces.spring.context.servlet.AbstractFacesView
createView, prepareForRendering, renderMergedOutputModel, useInclude
 
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

FacesExternalResourceView

public FacesExternalResourceView()
Constructor for use as a bean.


FacesExternalResourceView

public FacesExternalResourceView(java.lang.String url)
Creates a new FacesView with the given URL.

Parameters:
url - the URL to forward to
Method Detail

render

protected final void render(FacesContext context)
Renders the view if the response not already completed.

Specified by:
render in class AbstractFacesView
Parameters:
context - current FacesContext
See Also:
FacesContext.getResponseComplete()

SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG