01-07-2009 04:05 PM
01-08-2009 06:43 AM
${c.properties["demo:departmentName"]}
01-08-2009 09:40 AM
<#if c.hasAspect("demo:department")?exists>
<departmentName>${c.properties["demo:departmentName"]?string?replace("&", "&")}</departmentName>
<#else>
<departmentName/>
</#if>
Expression c.properties["demo:departmentName"] is undefined on line 58, column 27 in org/demo/dmbrowse.get.xml.ftl.
The problematic instruction:
———-
==> ${c.properties["demo:departmentName"]?string?replace("&", "&")} [on line 58, column 25 in org/demo/dmbrowse.get.xml.ftl]
in user-directive nodeInfo [on line 91, column 9 in org/demo/dmbrowse.get.xml.ftl]
———-
Java backtrace for programmers:
———-
freemarker.core.InvalidReferenceException: Expression c.properties["demo:departmentName"] is undefined on line 58, column 27 in org/demo/dmbrowse.get.xml.ftl.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
<properties>
<property>
<name>{http://www.alfresco.org/model/content/1.0}description</name>
<value></value>
</property>
<property>
<name>{http://www.alfresco.org/model/content/1.0}content</name>
<value>org.alfresco.repo.template.BaseContentNode$TemplateContentData@d72be</value>
</property>
<property>
<name>{http://www.alfresco.org/model/system/1.0}store-protocol</name>
<value>workspace</value>
</property>
<property>
<name>{http://www.alfresco.org/model/system/1.0}node-uuid</name>
<value>e2243099-90e0-4945-bc89-afd2cba3f052</value>
</property>
<property>
<name>{http://www.alfresco.org/model/content/1.0}created</name>
<value>Jan 7, 2009</value>
</property>
[color=#FF0000]<property>
<name>{http://www.demo.org/model/content/1.0}departmentName</name>
<value>IT & Help Desk</value>
</property>[/color]
<property>
<name>{http://www.alfresco.org/model/content/1.0}title</name>
<value>DCP_4963.JPG</value>
</property>
<property>
<name>{http://www.alfresco.org/model/system/1.0}node-dbid</name>
<value>524</value>
</property>
<property>
<name>{http://www.alfresco.org/model/content/1.0}author</name>
<value></value>
</property>
<property>
<name>{http://www.alfresco.org/model/content/1.0}modifier</name>
<value>admin</value>
</property>
<property>
<name>{http://www.alfresco.org/model/content/1.0}modified</name>
<value>Jan 7, 2009</value>
</property>
<property>
<name>{http://www.alfresco.org/model/system/1.0}store-identifier</name>
<value>SpacesStore</value>
</property>
<property>
<name>{http://www.alfresco.org/model/content/1.0}creator</name>
<value>admin</value>
</property>
<property>
<name>{http://www.alfresco.org/model/content/1.0}name</name>
<value>DCP_4963.JPG</value>
</property>
</properties>
<#if c.hasAspect("demo:department")?exists>
<departmentName>${c.properties["{http://www.demo.org/model/content/1.0}departmentName']?string?replace("&", "&")}</departmentName>
<#else>
<departmentName/>
</#if>
01-08-2009 11:19 AM
01-08-2009 11:28 AM
<#if c.properties["demo:departmentName"]?exists>
<departmentName>${c.properties["demo:departmentName"]?string?replace("&", "&")}</departmentName>
<#else>
<departmentName/>
</#if>
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.