07-11-2011 06:25 AM
<webscript>
<shortname>TEST</shortname>
<description>Dashlet de test</description>
<family>site-dashlet</family>
<url>/components/dashlets/test</url>
</webscript>
<div class="dashlet">
<div class="title">TEST</div>
<div class="body">
${site}
</div>
</div>
model.site = page.url.templateArgs.site;
var result = remote.call("/api/sites/" + page.url.templateArgs.site);
if (result.status == 200)
{
var site = eval('(' + result + ')').title;
}
model.site = site;
07-11-2011 06:43 AM
07-11-2011 07:03 AM
…
13:48:54,359 http-8080-1 ERROR [freemarker.runtime] Expression site is undefined on line 4, column 9 in org/alfresco/components/dashlets/test.get.html.ftl.
Expression site is undefined on line 4, column 9 in org/alfresco/components/dashlets/test.get.html.ftl.
The problematic instruction:
———-
==> ${site} [on line 4, column 7 in org/alfresco/components/dashlets/test.get.html.ftl]
———-
Java backtrace for programmers:
———-
freemarker.core.InvalidReferenceException: Expression site is undefined on line 4, column 9 in org/alfresco/components/dashlets/test.get.html.ftl.
…
…
at java.lang.Thread.run(Thread.java:619)
13:48:54,492 http-8080-1 ERROR [extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 06110000 Failed to process template org/alfresco/components/dashlets/test.get.html.ftl
org.springframework.extensions.webscripts.WebScriptException: 06110000 Failed to process template org/alfresco/components/dashlets/test.get.html.ftl
at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:170)
…
…
Caused by: freemarker.core.InvalidReferenceException: Expression site is undefined on line 4, column 9 in org/alfresco/components/dashlets/test.get.html.ftl.
…
*******************************************************************************************************************************07-11-2011 07:10 AM
Expression sites is undefined on line 4
07-11-2011 07:20 AM
07-11-2011 07:25 AM
07-11-2011 07:57 AM
07-11-2011 08:15 AM
<webscript>
<shortname>TEST</shortname>
<description>Dashlet de test</description>
<family>site-dashlet</family>
<url>/components/dashlets/test</url>
</webscript>
<div class="dashlet">
<div class="title">TEST</div>
<div class="body">
${site}
</div>
</div>
model.site = page.url.templateArgs.site;
07-11-2011 08:46 AM
07-11-2011 10:33 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.