org.riotfamily.components.render.component
Class ViewComponentRenderer

java.lang.Object
  extended by org.riotfamily.components.render.component.AbstractComponentRenderer
      extended by org.riotfamily.components.render.component.ViewComponentRenderer
All Implemented Interfaces:
ComponentRenderer, ApplicationContextAware

public class ViewComponentRenderer
extends AbstractComponentRenderer
implements ApplicationContextAware

ComponentRenderer implementation that resolves a view-name just like Spring's DispatcherServlet and renders the view passing the Component's properties as model.


Field Summary
 
Fields inherited from class org.riotfamily.components.render.component.AbstractComponentRenderer
COMPONENT_ID, CONTAINER, LIST_SIZE, log, PARENT, POSITION, THIS
 
Constructor Summary
ViewComponentRenderer()
           
 
Method Summary
protected  void renderInternal(Component component, int position, int listSize, HttpServletRequest request, HttpServletResponse response)
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 void setViewNamePrefix(String viewNamePrefix)
           
 void setViewNameSuffix(String viewNameSuffix)
           
 
Methods inherited from class org.riotfamily.components.render.component.AbstractComponentRenderer
render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewComponentRenderer

public ViewComponentRenderer()
Method Detail

setViewNamePrefix

public void setViewNamePrefix(String viewNamePrefix)

setViewNameSuffix

public void setViewNameSuffix(String viewNameSuffix)

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
Specified by:
setApplicationContext in interface ApplicationContextAware
Throws:
BeansException

renderInternal

protected void renderInternal(Component component,
                              int position,
                              int listSize,
                              HttpServletRequest request,
                              HttpServletResponse response)
                       throws Exception
Specified by:
renderInternal in class AbstractComponentRenderer
Throws:
Exception