As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
#{facesContext.externalContext.request.requestedSessionId}
<r:template template="/alfresco/templates/mydashlet.html.ftl" model="#{mycustom.templateModel}"/>
Hi all,I'm developing a custom dashlet and I need to access the current session Id, to do that I need to access HttpServletRequest.Anybody know how to access it from inside freemarker template?
${santoso.sessionId}
Thanks, TemplateProcessorExtension seems to be a great idea. However I couldn't find the documentation of it, could you pass me the link to the documentation?
public class BibtexTemplate extends BaseTemplateProcessorExtension { private BibtexService bibtexService; public String NodeToBibtexString(String nodeId) { StoreRef storeRef = new StoreRef("workspace://SpacesStore"); NodeRef nodeRef = new NodeRef(storeRef, nodeId); BibtexEntry entry = bibtexService.NodeToBibtex(nodeRef); return BibtexUtil.BibtexToString(entry); } public void setBibtexService(BibtexService bibtexService) { this.bibtexService = bibtexService; } }
<bean id="bibtexTemplateExtension" parent="baseTemplateImplementation" class="com.matrixware.irss.bibtex.BibtexTemplate"> <property name="extensionName"> <value>bibtexTempl</value> </property> <property name="bibtexService"> <ref bean ="BibtexService"/> </property> </bean>
<#list rows as row> ${bibtexTempl.NodeToBibtexString(row.nodeId)} </#list>