-
I'm having a problem with TemplateDirectiveModel. I've implemented the
interface following the examples in the docs, but I get different results
depending on what's contained in the body of the directive.
For instance, the following works as expected:
${someVariable}
The value of ${someVariable} gets passed down to my writer when I...
2009-11-10 20:29:18 UTC by Derek
-
Hi there.
I would like to be able to analyse a FreeMarker template. I thought I had the answer when I saw I could access the root TemplateElement through the Template instance, but alas, when I look closer (at IteratorBlock, DollarVariable etc) I see that the info I'd like access to on these objects is private, with no getter methods etc.
Is there another way I can go about this?...
2009-11-10 15:49:39 UTC by smooks
-
I try to use freemarker to generate interface files for equipment.
But I cannot get the animals example at work with the native java iF. I allways get an error in the animals loop.
Is it possible to post the java code to create the data object.
Much appreciated.
2009-11-06 00:58:11 UTC by nobody
-
Hello, any updates on this?
In my case I use FreeMarker to transform large XML file (about 60Mb) and get **java.lang.OutOfMemoryError: Java heap space**. Is it generally possible?
Config: FreeMarker 2.3.15, Jaxen 1.1.1, Core 2 Duo 2.13Ghz, 2Gb RAM
Thanks, Vova.
2009-11-05 10:24:43 UTC by trnl
-
You have written instead of , hence the is inside the #else block, thus it's not expected there. is treated as simple static text, so it doesn't cause error itself. (Always use # as if it was the first character of the tag *name*.)
Also note that #list and #foreach are the same... it's a better style to stick to one of them (#list is the "official" choice).
2009-11-04 09:24:25 UTC by ddekany
-
Because you have a typo: <#/if> instead of </#if>. (If <#/if> is just text for FreeMarker, so you try to close #foreach when you are still inside the #else block, hence the </#foreach> "wasn't expected"... But the error message is admitedly not very helpful.)
2009-11-04 08:46:56 UTC by nobody
-
Hi Guys,
I'm new to freemarker and I am running into problems.
I have a template as shown below but I am getting the error:
freemarker.core.ParseException: Encountered "</#foreach>" at line 32, column 1 in test.ftl.
Was expecting one of: ....
I can't see anything wrong with the template. Any ideas?
Thanks
Richard
TEMPLATE HERE:
<#ftl ns_prefixes={...
2009-11-04 02:15:58 UTC by richardlamo
-
Am getting a ParseException when I don't expect any.
freemarker.core.ParseException: Encountered "" at line 44, column 1 in test.ftl.
Was expecting one of:
...
...
...
...
...
...
...
...
...
...
...
...
2009-11-04 00:59:36 UTC by richardlamo
-
Hi,
I am trying to add the freemarker plugin to eclipse 3.2 ide, following http://freemarker.org/eclipse.html and i am getting
java.lang.NoClassDefFoundError: freemarker/core/ParseException
at freemarker.eclipse.editors.FreemarkerEditor.(FreemarkerEditor.java:34)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at...
2009-11-02 06:27:50 UTC by nobody
-
Double args lose the fraction part (i.e. get cast to integer) when passed to the bean.
To reproduce: in Java, add this:
root.put("Math", BeansWrapper.getDefaultInstance().getStaticModels().get(Math.class.getName()));
and in a template:
${Math.sin(0.2342)} --> will produce 0
The bug is the following lines in BeansWrapper.convertUnwrappedNumber(Class hint, Number number):
2009-10-29 09:52:05 UTC by avarga71