Package com.gentics.cr.rendering

Examples of com.gentics.cr.rendering.ContentRenderer


   */
  public void init(ServletConfig config) throws ServletException {

    super.init(config);
    this.crConf = new CRServletConfig(config);
    this.renderer = new ContentRenderer(crConf.getRequestProcessorConfig("1").getRequestProcessorConfig(2));
    this.pproc = new PlinkProcessor(crConf.getRequestProcessorConfig("1").getRequestProcessorConfig(2));
    try {
      this.rp = crConf.getNewRequestProcessorInstance(1);
    } catch (CRException e) {
      // TODO Auto-generated catch block
View Full Code Here


  public int doEndTag() throws JspException {
    // get the ContentRenderer
    ServletRequest renderRequest = getServletRequest();
    HttpSession session = pageContext.getSession();

    ContentRenderer renderer = (ContentRenderer) renderRequest.getAttribute(RENDERER_PARAM);
    PLinkReplacer pLinkReplacer = (PLinkReplacer) renderRequest.getAttribute(PLINK_PARAM);
    CRConfigUtil crConf = (CRConfigUtil) renderRequest.getAttribute(CRCONF_PARAM);

    try {
      if (object != null) {
        try {
          String content = renderer.renderContent(object, contentAttribute, true, pLinkReplacer, false, null);

          /* Get the ContentPostProcessor-Config from the PortletSession or instance it from the Config */
          @SuppressWarnings("unchecked")
          ConcurrentHashMap<String, ContentPostProcesser> confs = (ConcurrentHashMap<String, ContentPostProcesser>) session
              .getAttribute(SESSION_KEY_CONTENTPOSTPROCESSOR_CONF);
View Full Code Here

  public int doEndTag() throws JspException {
    // get the ContentRenderer
    RenderRequest renderRequest = getRenderRequest();
    PortletSession session = renderRequest.getPortletSession();

    ContentRenderer renderer = (ContentRenderer) renderRequest.getAttribute(RENDERER_PARAM);
    PLinkReplacer pLinkReplacer = (PLinkReplacer) renderRequest.getAttribute(PLINK_PARAM);
    CRConfigUtil crConf = (CRConfigUtil) renderRequest.getAttribute(CRCONF_PARAM);

    try {
      if (object != null) {
        try {
          String content = renderer.renderContent(object, contentAttribute, true, pLinkReplacer, false, null);

          /* Get the ContentPostProcessor-Config from the PortletSession or instance it from the Config */
          @SuppressWarnings("unchecked")
          ConcurrentHashMap<String, ContentPostProcesser> confs = (ConcurrentHashMap<String, ContentPostProcesser>) session
              .getAttribute(SESSION_KEY_CONTENTPOSTPROCESSOR_CONF, PortletSession.APPLICATION_SCOPE);
View Full Code Here

TOP

Related Classes of com.gentics.cr.rendering.ContentRenderer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.