How can we pass OGNL list to macro
spsarolkar <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
I am developing website using struts2 and freemarker .
I want to pass list created using ognl({'item1','item2','item3',...}) to
macro.
I tried following
<#macro traverseList mylist>
//
</#macro>
<traverseList mylist="%{'item1','item2',...}" ></traverseList>
but getting error as 'unexpected collection or sequence..//..'
Following works
<traverseList mylist=['item1','item2',...] ></traverseList>
But i want it through ognl because i want to pass expression like
collectionName{expression} e.g. users.{?#this.age>20}
--
View this message in context: http://www.nabble.com/How-can-we-pass-OGNL-list-to-macro-tp24387168p24387168.html
Sent from the freemarker-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge