Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment:

corrected freemarker list expression [1,2,3] instead of {1,2,3}

...

Code Block
xml
xml
<@saf.select label="Foo label - ${foo}" name="${name}" list={[1, 2, 3}]/>

Wiki Markup
Notice that the list attribute no longer has quotes around it. Now it will come in to the tag as an object that can't easily be converted to a String. Normally, the tag would just call {{toString}}, which would return "\[1, 2, 3\]" and be unable to be converted back to a List by OGNL. Rather than go through all this back and forth, the frameworks's FreeMarker tag support will recognize collections and not pass them through the normal tag attribute. Instead, the framework will set them directly in the {{parameters}} Map, ready to be consumed by the template.

...