Class LifecycleRenderingContext

java.lang.Object
org.kuali.rice.krad.uif.freemarker.LifecycleRenderingContext

public class LifecycleRenderingContext extends Object
Encapsulates a FreeMarker environment for rendering within the view lifecycle.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • LifecycleRenderingContext

      public LifecycleRenderingContext(Object model, javax.servlet.http.HttpServletRequest request)
      Create FreeMarker environment for rendering within the view lifecycle.
      Parameters:
      request - The active servlet request.
  • Method Details

    • getEnvironment

      public freemarker.core.Environment getEnvironment()
      Get the FreeMarker environment for processing the rendering phase, initializing the environment if needed.
      Returns:
      The FreeMarker environment for processing the rendering phase, initializing the environment if needed.
    • clearRenderingBuffer

      public void clearRenderingBuffer()
      Clear the output buffer used during rendering, in preparation for rendering another component using the same environment.
    • getRenderedOutput

      public String getRenderedOutput()
      Get all output rendered in the FreeMarker environment.
    • importTemplate

      public void importTemplate(String template)
      Import a FreeMarker template for rendering into the current environment.
      Parameters:
      template - The path to the FreeMarker template.
    • isImported

      public boolean isImported(String template)