<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.web.freemarker.user">
    <title>gmane.comp.web.freemarker.user</title>
    <link>http://blog.gmane.org/gmane.comp.web.freemarker.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5419"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5411"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5409"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5404"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5401"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5396"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5373"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5371"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5367"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5366"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5364"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5362"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5357"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5354"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5351"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5347"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5344"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5342"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5341"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.freemarker.user/5334"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5419">
    <title>Suggestion about the best BeansWrapper</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5419</link>
    <description>&lt;pre&gt;Hi all,

recently Daniel Dekany helped me in this list to fix a deadlock condition happening under special conditions when OFBiz (http://ofbiz.apache.org) screens were rendering Freemarker templates; during that interesting thread Daniel also mentioned that the way about the way we use BeansWrapper in OFBiz; here is the relevant part of the conversation:

=====================================================
QUESTION (me): Currently in OFBiz we are using the default object wrapper:

BeansWrapper defaultOfbizWrapper = BeansWrapper.getDefaultInstance();

do you think we should use a different one?

ANSWER (Daniel): I'm not sure. There are two problems with the current one:

- If you look at what map keys FreeMarker sees (`&amp;lt;#list k as
 someMap?keys&amp;gt;${k} &amp;lt;/#list&amp;gt;`), it mixes the actual Map keys with the
 methods of the Map class. This I already find annoying enough to
 stay away. But it's also dangerous, because if you are unlucky and
 have key like "get", then someMap.get and someMap[myDynamicKey]
 where myDyna&lt;/pre&gt;</description>
    <dc:creator>Jacopo Cappellato</dc:creator>
    <dc:date>2012-05-14T16:19:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5411">
    <title>how to pass value from code to page template</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5411</link>
    <description>&lt;pre&gt;I have a page template that I use for all my pages like:

&amp;lt;#macro page title="soem title"&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;title&amp;gt;${title}&amp;lt;/title&amp;gt;
&amp;lt;/html&amp;gt;
&amp;lt;body&amp;gt;
..
&amp;lt;#nested&amp;gt;

&amp;lt;/body&amp;gt;

&amp;lt;/#macro&amp;gt;

Then in my page I am doing:

&amp;lt;#import "/page.ftl" as p&amp;gt;

&amp;lt;&amp;lt; at &amp;gt;p.page title="some title"&amp;gt;

...


What if I wanted to get the title from my java code, and pass it down, is
that possible?

I'm using spring, and my view gets the ModelAndView values, can I set it
from the server side and pass it as a parameter for title?
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
FreeMarker-user mailing list
FreeMarker-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge&lt;/pre&gt;</description>
    <dc:creator>S Ahmed</dc:creator>
    <dc:date>2012-05-10T04:20:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5409">
    <title>Scheduled downtime of freemarker.org</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5409</link>
    <description>&lt;pre&gt;The server which hosts freemarker.org will be down for several hours due 
to maintenance work at the data center, approximately from

   Wed, 25 Apr 2012 20:15:00 GMT

to

   Thu, 26 Apr 2012 03:00:00 GMT


Hopefully the server will be back online a little bit sooner.



Stephan.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
&lt;/pre&gt;</description>
    <dc:creator>Stephan Müller</dc:creator>
    <dc:date>2012-04-25T07:03:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5404">
    <title>confused about html escaping</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5404</link>
    <description>&lt;pre&gt;My page is wrapped in a module that does has html escaping:

&amp;lt;#escape x as x?html&amp;gt;
..

&amp;lt;#nested&amp;gt;
..

&amp;lt;/#escape&amp;gt;

Then my nested section is outputing the values of a collection like this:

&amp;lt;pre&amp;gt;
                    &amp;lt;#list someCollection as doc&amp;gt;
                        &amp;lt;div class="line"&amp;gt;${doc.line}&amp;lt;/div&amp;gt;
                    &amp;lt;/#list&amp;gt;
&amp;lt;/pre&amp;gt;

Now the value of line is like "&amp;lt; some text here&amp;gt;"

But on my page, it is showing up as blank.  Looking at the actual rendered
html it shows blank also.  When I set a breakpoint in my code, I can see
that the collection has the value "&amp;lt; some text here &amp;gt;" for the item in the
collection 'someCollection'.

I tried removing the &amp;lt;#escape x as x?html&amp;gt; also and nothing changed, still
don't see the row.

I just want to safely display this information like this in the html:  &amp;amp;lt;
some text here &amp;amp;gt;
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your App&lt;/pre&gt;</description>
    <dc:creator>S Ahmed</dc:creator>
    <dc:date>2012-04-23T14:14:25</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5401">
    <title>loop a treemap</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5401</link>
    <description>&lt;pre&gt;How can I display both key and value paris inside of a treemap?

Do I still use the #list macro?
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2_______________________________________________
FreeMarker-user mailing list
FreeMarker-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freemarker-user
&lt;/pre&gt;</description>
    <dc:creator>S Ahmed</dc:creator>
    <dc:date>2012-04-22T20:34:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5396">
    <title>FreeMarker and PostScript?</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5396</link>
    <description>&lt;pre&gt;Hi All,

I'm considering using freemarker in an upcoming project.  One question I
had, does FreeMarker support post script? Are there any tutorials for
generating post script using freemarker?

John
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2_______________________________________________
FreeMarker-user mailing list
FreeMarker-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freemarker-user
&lt;/pre&gt;</description>
    <dc:creator>John D. Ament</dc:creator>
    <dc:date>2012-04-21T17:35:11</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5373">
    <title>Deadlock issue</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5373</link>
    <description>&lt;pre&gt;Hi all,

I know the question could be silly but we are struggling with a deadlock issue and I am wondering if any of you could give some hints to locate the problem.
We are using Freemarker (2.3.10) in a server with high traffic and we are experiencing a deadlock that makes the server very unstable.
Here are the details of the deadlock:

Thread 1:
a) ClassBasedModelFactory.get is called: this method acquires a lock on the "cache" variable
b) the method then calls BeansWrapper.introspectClass: this method attempts to acquire a lock on "classCache" variable

Thread 2:
x) BeansWrapper.introspectClass is called: this method acquires a lock on the "classCache" variable
y) the method then calls BeansWrapper.introspectClass that in turn calls ClassBasedModelFactory.clearCache: this method attempts to acquire a lock on "cache" variable

If the two threads are concurrent and perform the tasks in the following order:
a
x
b
y
we get the deadlock.

Now: we are sure this is the cause of the problem; what we do not know, &lt;/pre&gt;</description>
    <dc:creator>Jacopo Cappellato</dc:creator>
    <dc:date>2012-04-18T15:06:07</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5371">
    <title>using includes inside a macro?</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5371</link>
    <description>&lt;pre&gt;Is it possible to have includes in a macro?

My macro has a varialbe isSignedIn which is defaulted to false.

I want to include 2 other templates, both are navigation html elements, 1
for logged in users and the other for not.

So depending on the isSignedIn flag, I want to display a specific include.
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev_______________________________________________
FreeMarker-user mailing list
FreeMarker-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freemarker-user
&lt;/pre&gt;</description>
    <dc:creator>S Ahmed</dc:creator>
    <dc:date>2012-04-10T17:35:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5367">
    <title>help in understand how to reference my objects inmy view</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5367</link>
    <description>&lt;pre&gt;I have a UserSession object that I add into my model like:


UserSession userSession = get....

ModelAndView mav = new ModelAndView("..");


mav.add("session", userSession);

return mav;

Now in my index.ftl page I want to do this:

if userSession.isLoggedIn
&amp;lt;p&amp;gt;....
&amp;lt;/p&amp;gt;
end if

How do I do that using freemarker?

I tried this:

&amp;lt;#if session.isSignedIn&amp;gt;
&amp;lt;/#if&amp;gt;

But I get an error saying that session.isSignedIn has to return true/false.
 Is does return true/false, so what is wrong?

thanks!
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
FreeMarker-user mailing list
FreeMarker-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freemarker-user
&lt;/pre&gt;</description>
    <dc:creator>S Ahmed</dc:creator>
    <dc:date>2012-04-09T20:10:12</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5366">
    <title>freemarker and spring</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5366</link>
    <description>&lt;pre&gt;When using freemarker and spring, I was looking at the source code of the
freemarker viewresolver etc. and I recall seeing a place where request
attribute level objects can merged into the ModelAndView that is sent to
the view.

Is this true?

So if I have:

request.setAttribute("someObject", someObject);

that I set using a filter for example, when my view is rendered does this
mean the someObject will be available in my freemarker view or is there is
a config setting I have to switch to allow for this to happen?
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
FreeMarker-user mailing list
FreeMarker-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freemarker-user
&lt;/pre&gt;</description>
    <dc:creator>S Ahmed</dc:creator>
    <dc:date>2012-04-09T19:25:26</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5364">
    <title>Freemarker DTD Validation Issue - Urgent</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5364</link>
    <description>&lt;pre&gt;Hi,

We use Freemarker on our site to generate dynamic sections of the pages. Recently, we have been noticing DTD validation errors and the issue seems to be with connecting to java.sun.com and it is intermittent. 

Is there anyway to turn off DTD validation (We understand its not a best practice) or any alternative to resolve this issue? This is Urgent.

Thanks
Ram Palagummi
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev_______________________________________________
FreeMarker-user mailing list
FreeMarker-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freemarker-user
&lt;/pre&gt;</description>
    <dc:creator>Ram Palagummi</dc:creator>
    <dc:date>2012-04-04T14:50:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5362">
    <title>reqest a getExpression() method forfreemarker.core.InvalidReferenceException</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5362</link>
    <description>&lt;pre&gt;For exception handling, I would like to capture the actual expression that 
failed.  It appears the only way to get the expression is to parse the Strings 
returned in the detailMessage and/or the ftlInstructionStack.




------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
&lt;/pre&gt;</description>
    <dc:creator>eric east</dc:creator>
    <dc:date>2012-04-03T17:59:46</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5357">
    <title>accessing JAXB generated properties of a bean (accessing static inner class)</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5357</link>
    <description>&lt;pre&gt;Hi all, I was turned onto freemarker today and really impressed with it, and wanted to use it to generate spreadsheetML
(xml that  Excel will open as if it were a xlsx file)

I am having problems accessing properties buried a few layers deep.

Basically, I have a   OrganisationInfo class which contains an OrganisationInfo. NetworkList object,
And that networkList property contains a List of Network objects, from which I need to get
property values.

I am wondering if JAXB has generated something freemarker can't be used to access in it's template.

I want to try something like

cfg.setObjectWrapper(  new DefaultObjectWrapper() );
SimpleHash root = new SimpleHash();
// expose JAXB generated java object
root.put("organisationInfo", organisationInfo);

then my template has accessing syntax like

&amp;lt;h1&amp;gt; ${organisationInfo.networkList[0].tadigCode} &amp;lt;/h1&amp;gt;

Is this possible with freemarker? Is there an example of this anywhere?
I get various errors Expected hash. organisationInfo.networkList[0] evaluated instead to f&lt;/pre&gt;</description>
    <dc:creator>Walker, Robert</dc:creator>
    <dc:date>2012-03-30T03:55:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5354">
    <title>simple layout not working</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5354</link>
    <description>&lt;pre&gt;I'm getting this error:

Error reading imported file WEB-INF/views/layout/master.ftl The problematic
instruction: ---------- ==&amp;gt; import "/WEB-INF/views/layout/master.ftl" as p
[on line 1, column 1 in home/index.ftl] ---------- Java backtrace for
programmers: ---------- freemarker.template.TemplateException: Error
reading imported file WEB-INF/views/layout/master.ftl at
freemarker.core.LibraryLoad.accept(LibraryLoad.java:122) at
freemarker.core.Environment.visit(Environment.java:221) at
freemarker.core.MixedContent.accept(MixedContent.java:92) at
freemarker.core.Environment.visit(Environment.java:221) at
freemarker.core.Environment.process(Environment.java:199) at
freemarker.template.Template.process(Template.java:259) at
org.springframework.web.servlet.view.freemarker.FreeMarkerView.processTemplate(FreeMarkerView.java:366)
at
org.springframework.web.servlet.view.freemarker.FreeMarkerView.doRender(FreeMarkerView.java:283)
at
org.springframework.web.servlet.view.freemarker.FreeMarkerView.renderMergedTemplateMo&lt;/pre&gt;</description>
    <dc:creator>S Ahmed</dc:creator>
    <dc:date>2012-03-28T02:43:02</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5351">
    <title>Difficulty with XPath and Namespaces usingEclipse with simple ANT build</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5351</link>
    <description>&lt;pre&gt;Hello

Put simply, I cannot get Freemarker to process XPath queries or recognise XML namespaces - even using the examples out of the documentation. I am sure this must mean I'm doing something silly, but I cannot work out what.

Specifically; my XML document looks like this:-

&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;book title="Test"&amp;gt;
  &amp;lt;chapter title="Ch1"&amp;gt;
    &amp;lt;para&amp;gt;p1.1&amp;lt;/para&amp;gt;
    &amp;lt;para&amp;gt;p1.2&amp;lt;/para&amp;gt;
    &amp;lt;para&amp;gt;p1.3&amp;lt;/para&amp;gt;
  &amp;lt;/chapter&amp;gt;
  &amp;lt;chapter title="Ch2"&amp;gt;
    &amp;lt;para&amp;gt;p2.1&amp;lt;/para&amp;gt;
    &amp;lt;para&amp;gt;p2.2&amp;lt;/para&amp;gt;
  &amp;lt;/chapter&amp;gt;
&amp;lt;/book&amp;gt; 

and my template like this

&amp;lt;#assign book=document.book&amp;gt;
&amp;lt;h1&amp;gt;${book.&amp;lt; at &amp;gt;title}&amp;lt;/h1&amp;gt;
&amp;lt;#list book.chapter as ch&amp;gt;
  &amp;lt;h2&amp;gt;${ch.&amp;lt; at &amp;gt;title}&amp;lt;/h2&amp;gt;
  &amp;lt;#list ch.para as p&amp;gt;
    &amp;lt;p&amp;gt;${p}
  &amp;lt;/#list&amp;gt;
&amp;lt;/#list&amp;gt;  
&amp;lt;---- Next list ---&amp;gt;
&amp;lt;#list document["book/chapter[title='Ch1']/para"] as p&amp;gt;
  &amp;lt;p&amp;gt;${p}
&amp;lt;/#list&amp;gt; 
&amp;lt;--- do the original again --&amp;gt;
&amp;lt;#list book.chapter as ch&amp;gt;
  &amp;lt;h2&amp;gt;${ch.&amp;lt; at &amp;gt;title}&amp;lt;/h2&amp;gt;
  &amp;lt;#list ch.para as p&amp;gt;
    &amp;lt;p&amp;gt;${p}
  &amp;lt;/#list&amp;gt;
&amp;lt;/#list&amp;gt;  
&amp;lt;---- Count --&amp;gt;
${document["count(//para)"]}  

and my output looks &lt;/pre&gt;</description>
    <dc:creator>Robert Johnson</dc:creator>
    <dc:date>2012-03-26T15:19:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5347">
    <title>Listing enumerations</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5347</link>
    <description>&lt;pre&gt;Hi,

I have a method which returns an Enumeration, but when it is rendered
with #list or #foreach
an exception is thrown:

?size is unsupported for: freemarker.ext.beans.OverloadedMethodModel
The problematic instruction:
----------
==&amp;gt; list melati.database.displayTables as table [on line 67, column 50
in org/melati/admin/Top.fml]
----------

Java backtrace for programmers:
----------
freemarker.template.TemplateModelException: ?size is unsupported for:
freemarker.ext.beans.OverloadedMethodModel
at freemarker.ext.beans.OverloadedMethodModel.size(OverloadedMethodModel.java:149)
at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:174)
at freemarker.core.Environment.visit(Environment.java:428)

The template is:

&amp;lt;select name="table" OnChange="submit();" title="Select table to edit"&amp;gt;
&amp;lt;#assign lasttype = ""&amp;gt;
&amp;lt;#assign selected = false&amp;gt;
&amp;lt;#list melati.database.displayTables as table&amp;gt;
  &amp;lt;#if !table.tableInfo.category.equals(lasttype)&amp;gt;
    &amp;lt;option value=""&amp;gt;&amp;amp;nbsp;&amp;lt;/option&amp;gt;
    &amp;lt;option value=""&amp;gt;${table&lt;/pre&gt;</description>
    <dc:creator>Tim Pizey</dc:creator>
    <dc:date>2012-03-09T17:31:24</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5344">
    <title>Get Node Value from Attribute</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5344</link>
    <description>&lt;pre&gt;Hi all,

Please help me how to access the value of Node that has attribute
&amp;lt; at &amp;gt;label='LastClase'.

Let say my data like this
&amp;lt;header&amp;gt;
  &amp;lt;data label="CompanyName"&amp;gt;Telstra Corporation Limited&amp;lt;/data&amp;gt;
  &amp;lt;data label="GICSIndustry"&amp;gt;Diversified Telecommunication Services&amp;lt;/data&amp;gt;
  &amp;lt;data label="LastClose"&amp;gt;3.25&amp;lt;/data&amp;gt;
  &amp;lt;data label="GICSIndustryGroup"&amp;gt;Telecommunication Services&amp;lt;/data&amp;gt;
  &amp;lt;data label="GICSSector"&amp;gt;Telecommunication Services&amp;lt;/data&amp;gt;
&amp;lt;/header&amp;gt;

I can access it from &amp;lt;data&amp;gt; index like ${doc.header.doc[2]} but I don't know
how to access it from &amp;lt; at &amp;gt;label value.

I try many ways but still got error
${header.data[&amp;lt; at &amp;gt;label='TradingStatus']}
${header.data.&amp;lt; at &amp;gt;label['TradingStatus']}
${header.data["&amp;lt; at &amp;gt;label='TradingStatus'"]}

Please help.....

--
View this message in context: http://freemarker.624813.n4.nabble.com/Get-Node-Value-from-Attribute-tp4456246p4456246.html
Sent from the freemarker-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Virtualization &amp;amp; &lt;/pre&gt;</description>
    <dc:creator>pchainarong</dc:creator>
    <dc:date>2012-03-08T12:09:05</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5342">
    <title>FreeMarker 2.3.19 is out. Please read securitynotes!</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5342</link>
    <description>&lt;pre&gt;FreeMarker 2.3.19 is out!

Download:
http://sourceforge.net/projects/freemarker/files/freemarker/2.3.19/freemarker-2.3.19.tar.gz/download

GAE-compatible binary:
http://sourceforge.net/projects/freemarker/files/freemarker/2.3.19/freemarker-gae-2.3.19.jar/download


Changes
-------

Don't miss the security related changes, they may affect your
application!

Changes on the FTL side:

* Attention: The output of ISO 8601 date/time formatting built-ins,
  introduced in 2.3.17, was slightly changed. From now on, the time
  zone offset, when it's displayed and it isn't Z, always includes the
  minutes. For example, 15:30:15+02 becomes to 15:30:15+02:00 in the
  template output. Both formats are valid according to ISO 8601 (so
  anything that expects ISO 8601 date/times should continue working),
  but only the last format complies with the XML Schema date/time
  formats, hence this change.

* New built-in for escaping inside JSON string literals: json_string.

* Bugfix: Wrong # tags were printed as static text inste&lt;/pre&gt;</description>
    <dc:creator>Daniel Dekany</dc:creator>
    <dc:date>2012-03-01T02:00:14</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5341">
    <title>Input requited for a RFI</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5341</link>
    <description>&lt;pre&gt;HI,

I am working on a RFI related to content adaptation and as part of that evaluating different templating engines. I am looking for a comparison matrix comparison Freemarker with other similar solutions. Kindly share the same if one available. Also any information on different parameters against which a templating engine should be evaluated will be helpful as well.

Since working on aggressive timelines, will appreciate an early response.

Thanks
Rajnish
------------------------------------------------------------------------------
Virtualization &amp;amp; Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/_______________________________________________
FreeMarker-user mailing list
FreeMarker-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freemarker-user
&lt;/pre&gt;</description>
    <dc:creator>Rajnish Taneja</dc:creator>
    <dc:date>2012-02-29T05:52:31</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5334">
    <title>Cannot load template in Linux using SpringFreeMarkerConfigurationFactory</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5334</link>
    <description>&lt;pre&gt;Hi

I have a web app on Tomcat 6 that loads FreeMarker templates via
org.springframework.ui.freemarker.FreeMarkerConfigurationFactory. The web
app is plain JSP (not Spring MVC). The app works fine in a Windows
environment, but will not work on Linux (Slackware 13.37 64 bit). When I
run it on Linux it gives me a file not found exception. I have tried
multiple variations on this configuration including putting my templates
directory in the classpath, using Spring prefixes like "file:" and
"classpath:" for the templateLoaderPath.  Nothing has worked.  Please let
me know if you have any ideas to fix. Thanks, Peter.

    &amp;lt;!-- Freemarker template config factory. Works on Windows --&amp;gt;
    &amp;lt;bean id="freemarkerTemplateConfigFactory"
class="org.springframework.ui.freemarker.FreeMarkerConfigurationFactory"&amp;gt;
        &amp;lt;property name="templateLoaderPath" value="/WEB-INF/ftemplates/" /&amp;gt;
    &amp;lt;/bean&amp;gt;

    &amp;lt;bean id="templateService" class="com.mypkg.service.TemplateService"&amp;gt;
       &amp;lt;property name="configurationFactory"
ref="fre&lt;/pre&gt;</description>
    <dc:creator>Peter Kleczka</dc:creator>
    <dc:date>2012-02-22T21:12:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.freemarker.user/5332">
    <title>Calling macro with tricky parameter name</title>
    <link>http://comments.gmane.org/gmane.comp.web.freemarker.user/5332</link>
    <description>&lt;pre&gt;Hello all,

I have a macro that I want to use for producing html5 page (fragments). 
It looks like this:

&amp;lt;#macro input id params...&amp;gt;
&amp;lt;#list params?keys as param&amp;gt;
     Key: ${param}&amp;lt;br /&amp;gt;
     Value: ${params[param]}&amp;lt;br /&amp;gt;
&amp;lt;/#list&amp;gt;
&amp;lt;/#macro&amp;gt;

Question: How do I call that macro with parameter named data-custom with 
the value freemarker?

The naive aproach would have been:

&amp;lt;&amp;lt; at &amp;gt;input id="something" data-custom="freemarker" /&amp;gt;

Background:
In html5 they have the new convention that you can enter custom data 
attributes  on elements by using a data- prefix on all attributes. I 
suspect that my question is likely to reoccur in the future as html5 
becomes more common.

I've browsed through the FAQ and .vars in mentioned for accessing the 
variables but that isn't a problem me (since I'm iterating through params).

Is there a way to specify a tricky parameter name somehow?

Thanks in advance!

//Jerker


------------------------------------------------------------------------------
Virtualization &amp;amp; Cloud Management&lt;/pre&gt;</description>
    <dc:creator>Jerker Klang</dc:creator>
    <dc:date>2012-02-22T15:21:31</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.web.freemarker.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.web.freemarker.user</link>
  </textinput>
</rdf:RDF>

