Class GenericViewCMSComponentRenderer

java.lang.Object
de.hybris.platform.acceleratorcms.component.renderer.impl.GenericViewCMSComponentRenderer
All Implemented Interfaces:
CMSComponentRenderer<AbstractCMSComponentModel>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware
Direct Known Subclasses:
CachingCMSComponentRenderer

public class GenericViewCMSComponentRenderer extends Object implements CMSComponentRenderer<AbstractCMSComponentModel>, org.springframework.beans.factory.BeanFactoryAware
GenericViewCMSComponentRenderer. Generic CMS component renderer. Looks for a controller bean named with the typecode of the CMS component (with suffix 'Controller'), if a controller exists with that name then the component is rendered by a server side include to '/view/[controllerName]'. If there is no controller defined then the default include is '/view/DefaultCMSComponentController'.
  • Field Details

  • Constructor Details

    • GenericViewCMSComponentRenderer

      public GenericViewCMSComponentRenderer()
  • Method Details

    • getBeanFactory

      protected org.springframework.beans.factory.BeanFactory getBeanFactory()
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • renderComponent

      public void renderComponent(javax.servlet.jsp.PageContext pageContext, AbstractCMSComponentModel component) throws javax.servlet.ServletException, IOException
      Description copied from interface: CMSComponentRenderer
      Render a CMS Component into the page at the current location.
      Specified by:
      renderComponent in interface CMSComponentRenderer<AbstractCMSComponentModel>
      Parameters:
      pageContext - The page context to render into
      component - The component to render
      Throws:
      javax.servlet.ServletException
      IOException
    • renderView

      protected void renderView(javax.servlet.jsp.PageContext pageContext, AbstractCMSComponentModel component, String includePath) throws javax.servlet.ServletException, IOException
      Throws:
      javax.servlet.ServletException
      IOException