cancel
Showing results for 
Search instead for 
Did you mean: 

Freemarker Template Errors

vijay_alfresco
Champ in-the-making
Champ in-the-making
Hi,

I have a .ftl (Freemarker) page which has jstl tags like
<c:if test="${atricles.number != 1}">
When I try to create a webform and
click on Fisnish, I am getting errors (conflicts) as the articles.number dosent match the nodes of output xml file (from webform)


Please let me know how can skip user defined variables as above (can I use CDATA kind of logic, if so
please help me in resolving this issue).

Thanks,
Vijay
3 REPLIES 3

jbarmash
Champ in-the-making
Champ in-the-making
JSTL tags should be completely ignored by Freemarker.

I am suspect of this "${atricles.number != 1}" - doesn't look right.  Freemarker will not know how to resolve it - it expects a variable name in there, not an expression, as far as I understand.

tommorris
Champ in-the-making
Champ in-the-making
You can stop Freemarker parsing Expression Language that is meant for JSTL interpretation, by using the 'noparse' tag.
Like this:
<#noparse>
<c:if test="${atricles.number != 1}">
</#noparse>

vijay_alfresco
Champ in-the-making
Champ in-the-making
Thank you, the solution is <#noparse>

Thanks again