FreeMarker Error : left-hand operand: Expected a hash, but this evaluated to a sequence -


When I loop through a list in the freemarker like below, it works fine.

  & lt #list as product cModel.products & gt;  

But when I am transiting the size of the list as a variable,

   

I'm getting an exception from the free marker like the empty mark

Left hand operand: Expecting a hash, but it's a sequence Assessed for

Any suggestions?

I hope that you are accessing it incorrectly. / P>

According to your example, list name is product, then

   

Products should return to the size.

Hope it helps.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -