public class UITemplate
extends org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent
FreeMarker templates can be specified as a NodeRef or classpath location. The template output will be processed against the default model merged with any custom model reference supplied to the component as a value binding attribute. The output of the template is the output of the component tag.
| Modifier and Type | Class and Description |
|---|---|
static class |
UITemplate.URLHelper
URL Helper - to supply ${url.context} value for templates in JSF client
|
| Constructor and Description |
|---|
UITemplate() |
| Modifier and Type | Method and Description |
|---|---|
void |
encodeBegin(javax.faces.context.FacesContext context) |
String |
getFamily() |
Object |
getModel()
Return the custom data model to bind template against.
|
String |
getTemplate() |
String |
getTemplatePath() |
void |
restoreState(javax.faces.context.FacesContext context,
Object state) |
Object |
saveState(javax.faces.context.FacesContext context) |
void |
setModel(Object model) |
void |
setTemplate(String template) |
void |
setTemplatePath(String templatePath) |
outputAttributeaddFacesListener, broadcast, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBindingpublic String getFamily()
getFamily in class javax.faces.component.UIComponentUIComponent.getFamily()public void restoreState(javax.faces.context.FacesContext context,
Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIComponentBaseStateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)public Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIComponentBaseStateHolder.saveState(javax.faces.context.FacesContext)public void encodeBegin(javax.faces.context.FacesContext context)
throws IOException
encodeBegin in class javax.faces.component.UIComponentBaseIOExceptionUIComponentBase.encodeBegin(javax.faces.context.FacesContext)public Object getModel()
public void setModel(Object model)
model - The model to set.public String getTemplate()
public void setTemplate(String template)
template - The template NodeRef/classpath to set.public String getTemplatePath()
public void setTemplatePath(String templatePath)
templatePath - The template cm:name based path to set.Copyright © 2005–2018 Alfresco Software. All rights reserved.