[ 
https://issues.apache.org/struts/browse/WW-3173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47076#action_47076
 ] 

Christopher Maloof commented on WW-3173:
----------------------------------------

This is a significant annoyance with Struts + FreeMarker, and I'd love to see 
it fixed, especially since the docs at 
http://struts.apache.org/2.x/docs/freemarker-tags.html#FreeMarkerTags-AttributeTypes
 are pretty clear that it ought to work.

> list={ 'foo': 'bar' } unusable with struts-tags such as <@s.radio /> on 
> freemarker results.
> -------------------------------------------------------------------------------------------
>
>                 Key: WW-3173
>                 URL: https://issues.apache.org/struts/browse/WW-3173
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.8
>            Reporter: Antti Lankila
>            Priority: Minor
>
> Trying to render something like this:
> <@s.radio name="x" list={'foo': 'bar'} />
> results in stringifications of freemarker.ext.beans.HashAdapter instead of 
> the desired keys and values. Support for converting this to something that 
> the radiomap.ftl could handle properly would be great.
> Manual workaround available with hiding the forcibly generated label and 
> appending another manually:
> <style type="text/css"> .brokenMapBehaviourWorkaround label { display: none; 
> } </style>
> <div class="brokenMapBehaviourWorkaround"><@s.radio name="x" list=['foo'] /> 
> bar</div>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to