I have this spring macro
[@spring.formSingleSelect path="discoveryProjectDetailsBean.discoveryProjectBean.dataSource" options="dataSources" /]
it throws exception
freemarker.template.TemplateException: Expected collection or sequence. options evaluated instead to freemarker.template.SimpleScalar on line 227, column 20 in spring.ftl.
at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:135)
this happens because it cannot interpret the dataSource list as sequence.
any help
now I never found harder question that this, this exception above happened as the
dataSourcelist I was trying to set as options list wasn’t pure string list. all the options list to be passed to the@spring.formSingleSelectI also found another reference herewith a case just like mine code snippet of the working tag I am using now is below.
I hope this would help somebody