org.riotfamily.components.render.component
Class ViewComponentRenderer
java.lang.Object
org.riotfamily.components.render.component.AbstractComponentRenderer
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewComponentRenderer
public ViewComponentRenderer()
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