Class LifecycleRenderingContext
java.lang.Object
org.kuali.rice.krad.uif.freemarker.LifecycleRenderingContext
Encapsulates a FreeMarker environment for rendering within the view lifecycle.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
ConstructorsConstructorDescriptionLifecycleRenderingContext(Object model, javax.servlet.http.HttpServletRequest request) Create FreeMarker environment for rendering within the view lifecycle. -
Method Summary
Modifier and TypeMethodDescriptionvoidClear the output buffer used during rendering, in preparation for rendering another component using the same environment.freemarker.core.EnvironmentGet the FreeMarker environment for processing the rendering phase, initializing the environment if needed.Get all output rendered in the FreeMarker environment.voidimportTemplate(String template) Import a FreeMarker template for rendering into the current environment.booleanisImported(String template)
-
Constructor Details
-
LifecycleRenderingContext
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
Get all output rendered in the FreeMarker environment. -
importTemplate
Import a FreeMarker template for rendering into the current environment.- Parameters:
template- The path to the FreeMarker template.
-
isImported
-