anjibman
2013-05-09 19:07:14 UTC
Hi I have a DTO as follow
class MyDTO {
String name
java.Util.Date acctCreatedDate
List<County> activeCountyList
}
In ftl I have
<#if name??> ${name} <#else> Test </#if>
<#if acctCreatedDate??> ${acctCreatedDate} </#if>
<ul>
<#list activeCountyList as activeCounty>
<li>${activeCounty.label}</li>
</#list>
</ul>
"name" is displayed OK.
"acctCreatedDate" is displayed as "Fri Apr 26 15:37:29 EDT 2013". How can I
display as "26/04/2013"?
For list I am getting error
Expected collection or sequence. achievements evaluated instead to
freemarker.ext.beans.StringModel
Any help is appreciated.
Thanks
--
View this message in context: http://freemarker.624813.n4.nabble.com/Display-list-item-in-freemarker-page-tp4654544.html
Sent from the freemarker-user mailing list archive at Nabble.com.
class MyDTO {
String name
java.Util.Date acctCreatedDate
List<County> activeCountyList
}
In ftl I have
<#if name??> ${name} <#else> Test </#if>
<#if acctCreatedDate??> ${acctCreatedDate} </#if>
<ul>
<#list activeCountyList as activeCounty>
<li>${activeCounty.label}</li>
</#list>
</ul>
"name" is displayed OK.
"acctCreatedDate" is displayed as "Fri Apr 26 15:37:29 EDT 2013". How can I
display as "26/04/2013"?
For list I am getting error
Expected collection or sequence. achievements evaluated instead to
freemarker.ext.beans.StringModel
Any help is appreciated.
Thanks
--
View this message in context: http://freemarker.624813.n4.nabble.com/Display-list-item-in-freemarker-page-tp4654544.html
Sent from the freemarker-user mailing list archive at Nabble.com.