AnsweredAssumed Answered

Template examples and FreeMarker

Question asked by fouellet on Dec 1, 2005
Latest reply on Dec 7, 2005 by fouellet
I was trying the template samples and got errors with the <#list> directive while trying to product a list of objects. I am new to FreeMarker, but it seems that the variable assigned with "as" cannot be used… For example, even simple stuff like:

<#list ["one", "two", "three"] as n>
returns the error such as "Expression n is undefined at line…" with a long  Java backtrace. Direct reference to properties such as  ${userhome.children[0].name} work fine.

Looks like a variable scope issue.

Anything to do with the FreeMarker service? I am using enterprise RC1 on Linux.

Thanks,  :roll: