Error message

Shervin Asgari <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi.

I have two questions.

I am using FreeMarker 3.2.17 together with JODReports.

I have in OpenOffice.org created a template. In the content.xml file, I 
have the following:

<text:p text:style-name="P2" />
<text:p text:style-name="P5">Applicant:</text:p>
<text:p text:style-name="P5" />
<text:p text:style-name="P6">${motorferdsel.applicant.epost}</text:p>
<text:p text:style-name="P6">${motorferdsel.applicant.id}</text:p>
<text:p text:style-name="P6">${motorferdsel.applicant.name}</text:p>
<text:p text:style-name="P6" />

Now for some reason, freemarker doesnt like this: 
${motorferdsel.applicant.epost}, but has no problem with the last two.

It reports:
Expression any is undefined on line 2, column 17 in content.xml.
The problematic instruction:
----------
==> ${motorferdsel.applicant.epost} escaped 
${motorferdsel.applicant.epost?xml?replace("
","<text:line-break />")} [on line 4, column 6709 in content.xml]
----------

*1. Why is that?*

Second question:

Expected hash. mfapproval evaluated instead to 
freemarker.template.SimpleScalar on line 4, column 7334 in content.xml.
The problematic instruction:
----------
==> ${mfapproval.created?datetime} escaped 
${mfapproval.created?datetime?xml?replace("
","<text:line-break />")} [on line 4, column 7332 in content.xml]
----------

Java backtrace for programmers:
----------
freemarker.template.TemplateException: Expected hash. mfapproval 
evaluated instead to freemarker.template.SimpleScalar on line 4, column 
7334 in content.xml.

*What does this error message mean?*

BR

-- 
Shervin Asgari

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.