Re: [FMPP] Help with the <#list> directive with a sequence
Brought to you by:
ddekany
|
From: Bruce P. <bpe...@ya...> - 2006-02-01 16:03:28
|
I think I understand now, based on your response. Again, I'm new to this (FreeMarker). I was looking at the class member names not the names from the methods.
Thanks.
Daniel Dekany <dd...@fr...> wrote: It's strange what you are saying, because FreeMarker (and FMPP) doesn't
"translate" any names. It uses JavaBean property names as is (according
the JavaBeans specification), and Map items with their string keys as
is. Maybe your predecessor did some hack, like defined property names
explicitly in Java rather than letting it deduce them from the method
names, or plugged in a custom FreeMarker ObjectWrapper.
Or, where does the said collection come from? How is it "loaded" into
the data model?
--
Best regards,
Daniel Dekany
Tuesday, January 31, 2006, 6:00:02 PM, Bruce Perryman wrote:
Hi,
I've inherited a project that uses freemarker and I need help
understanding a concept. I am very new to freemarker. A Collection
(List) is being used with a <#list> directive namely if the collection
is named stuff, the <#list> is:
<#list stuff as x>
and its elements as
${x.fieldname} where fieldname is an element in the collection.
What confuses me is that the fieldnames used aren't consistent with the
definition of the collection. For example, if the collection is defined
as having fields day_of_week and emp_Id, the syntax of the list
references
${x.dayOfWeek} and ${x.empID}
How do I find out where the mapping of the names takes place?
Thanks for your help in advance.
Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
fmpp-open mailing list
fmp...@li...
https://lists.sourceforge.net/lists/listinfo/fmpp-open
---------------------------------
What are the most popular cars? Find out at Yahoo! Autos |