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(FacesContext context) |
String |
getFamily() |
Object |
getModel()
Return the custom data model to bind template against.
|
String |
getTemplate() |
String |
getTemplatePath() |
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
void |
setModel(Object model) |
void |
setTemplate(String template) |
void |
setTemplatePath(String templatePath) |
outputAttribute
addFacesListener, 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, setValueBinding
public String getFamily()
getFamily
in class UIComponent
UIComponent.getFamily()
public void restoreState(FacesContext context, Object state)
restoreState
in interface StateHolder
restoreState
in class UIComponentBase
StateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)
public Object saveState(FacesContext context)
saveState
in interface StateHolder
saveState
in class UIComponentBase
StateHolder.saveState(javax.faces.context.FacesContext)
public void encodeBegin(FacesContext context) throws IOException
encodeBegin
in class UIComponentBase
IOException
UIComponentBase.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–2017 Alfresco Software. All rights reserved.