03-04-2009 05:33 PM
<property name="mol:modesVibration">
<title>Vibrational Modes</title>
<type>d:boolean</type>
</property>
03-05-2009 05:06 AM
<#assign docs=companyhome.childrenByLuceneSearch[query]>
<#list docs as child>
<#if child.properties["cm:yourCustomProperty"]?exists && child.properties["cm:yourCustomProperty"]!="">
${message(child.properties["cm:yourCustomProperty"])}
</#if>
03-05-2009 05:45 PM
child.properties[cm:yourCustomProperty"].title freemarker.template.TemplateException - Expected hash. child.properties[cm:yourCustomProperty"] evaluated instead to freemarker.template.SimpleScalar on line …
child.properties[cm:yourCustomProperty"].type 03-06-2009 05:02 AM
03-06-2009 11:17 AM
03-06-2009 11:31 AM
03-09-2009 08:29 PM
Message: Wrapped Exception (with status template): Error during processing of the template 'Expected hash. node.properties["tst:testProperty"] evaluated instead to freemarker.template.SimpleScalar on line 13, column 15 in org/alfresco/test/test.get.html.ftl.'. Please contact your system administrator.
Exception: freemarker.template.TemplateException - Expected hash. node.properties["tst:testProperty"] evaluated instead to freemarker.template.SimpleScalar on line 13, column 15 in org/alfresco/test/test.get.html.ftl.
freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:135)
freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
freemarker.core.Expression.getStringValue(Expression.java:93)
freemarker.core.DollarVariable.accept(DollarVariable.java:76)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
freemarker.core.Environment.visit(Environment.java:415)
freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Environment.process(Environment.java:188)
freemarker.template.Template.process(Template.java:237)
org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:201)
org.alfresco.web.scripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:505)
org.alfresco.web.scripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:241)
org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:319)
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)
org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:368)
org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:390)
org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:273)
org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:261)
org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:116)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)
<?xml version="1.0" encoding="UTF-8"?>
<!– Test Model –>
<!– Note: This model is pre-configured to load at startup of the Repository. So, all custom –>
<!– types and aspects added here will automatically be registered –>
<model name="tst:testModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Test Model</description>
<author></author>
<version>1.0</version>
<imports>
<!– Import Alfresco Dictionary Definitions –>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
</imports>
<!– Introduction of new namespaces defined by this model –>
<namespaces>
<namespace uri="http://www.alfresco.org/model/tst/1.0" prefix="tst"/>
</namespaces>
<constraints>
</constraints>
<types>
<type name="tst:test">
<title>Test Type</title>
<parent>cm:content</parent>
<properties>
<property name="tst:testProperty">
<title>Test Property</title>
<type>d:text</type>
</property>
</properties>
</type>
</types>
<aspects>
</aspects>
</model><html>
<body>
<img src="${url.context}/images/logo/AlfrescoLogo32.png" alt="Alfresco" />
<br />
<p>${resultsetlength}</p>
<br />
<br />
<table">
<#list resultset as node>
<tr>
<td>${node.name}</td>
<td><a href="${url.serviceContext}/api/node/content/${node.nodeRef.storeRef.protocol}/${node.nodeRef.storeRef.identifier}/${node.nodeRef.id}/${node.name?url}">Content</a></td><td>${node.properties["tst:testProperty"]}</td>
<td>${node.properties["tst:testProperty"].type}</td></tr>
</#list>
</table>
</body>
</html>03-10-2009 02:41 AM
child.properties[cm:yourCustomProperty"] only.03-10-2009 11:08 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.