-
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 in FreeMarker
-
I have to write .node["./ancestor::news"] for that to happen, otherwise it just returns 0 nodes.
2009-10-28 18:54:05 UTC in FreeMarker
-
I guess it should be just a single attribute value... a string.
2009-10-28 16:59:45 UTC in FreeMarker
-
This is not a FreeMarker question; FreeMarker knows nothing about ODT. Then, whether it's conditional or not is irrelevant; that you can do can do conditionally too. Anyway, certainly there is an ODT XML element for that, like <pageBreak/> (just an example...), and then you can write <#if someCondition><pageBreak/></#if>.
2009-10-28 14:02:51 UTC in FreeMarker
-
This is already fixed in the SVN:
http://freemarker.svn.sourceforge.net/viewvc/freemarker/branches/2.3/freemarker/src/freemarker/cache/FileTemplateLoader.java?content-type=text/vnd.viewcvs-markup&root=&r1=1140&r2=1141
This fix will appear in 2.3.16, which should be released in weeks. Until that, if you may try the nightly builds, or patch 2.3.15 manually according the above diff.
2009-10-28 09:41:15 UTC in FreeMarker
-
Well, it wouldn't be entirely backward-compatible to remove those dependencies, but otherwise it would be easy to do so for us. I think while it may breaks some FreeMarker-related utilities around, it certainly won't break any actual production systems. So if Google sticks to this policy forever, I think we will have to bend and break 2.3.x backward compatibility a bit. Are you sure there is no...
2009-10-18 11:10:09 UTC in FreeMarker
-
In that case it's not a FreeMarker-related issue anymore, since FreeMarker or not, you just can't access those resources reliably, it seems. So either put the templates into the "classpath" (like packed together with your POJO classes) so you don't need the ServletContext, or the ServletContext should be injected into that POJO, because it indeed depends on the ServletContext.
2009-10-15 08:05:54 UTC in FreeMarker
-
Instead of a straight answer, let me point out why what your are doing is certainly the result of misunderstandings regarding how FreeMarker works:
a) The freemarker.template.Configuration object, and thus the TemplateLoader it contains, should be created only once during the Web application life-cycle, during its initialization, and not for each HTTP request. The last would mean serious...
2009-10-13 20:38:22 UTC in FreeMarker
-
ddekany committed revision 1145 to the FreeMarker SVN repository, changing 1 files.
2009-10-10 09:12:35 UTC in FreeMarker
-
ddekany committed revision 1144 to the FreeMarker SVN repository, changing 1 files.
2009-10-05 11:40:12 UTC in FreeMarker