11-15-2012 12:02 PM
Nuxeo 5.6 template files, including server.xml.nxftl, appear to use Freemarker interpolations in ways that violate the warning below extracted from this Freemarker document. If you agree, should I open a JIRA for this issue?
Warning!
A frequent mistake of users is the usage of interpolations in places where it shouldn't/can't
be used. Interpolations work only in text sections (e.g. <h1>Hello ${name}!</h1>) and in
string literals (e.g. <#include "/footer/${company}.html">). A typical bad usage is
<#if ${isBig}>Wow!</#if>, which is syntactically WRONG. You should simply write
<#if isBig>Wow!</#if>. Also, <#if "${isBig}">Wow!</#if> is WRONG too, since the parameter
value will be a string, and the if directive wants a boolean value, so it will cause a
runtime error.
Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.
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.