<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;
…
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.
…
*******************************************************************************************************************************Expression sites is undefined on line 4
<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;
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.