You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Commented) (JIRA)" <ji...@apache.org> on 2012/04/10 15:53:18 UTC

[jira] [Commented] (WW-3173) list={ 'foo': 'bar' } unusable with struts-tags such as <@s.radio /> on freemarker results.

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

Lukasz Lenart commented on WW-3173:
-----------------------------------

The above syntax is invalid, it must be:

{code:xml}
<@s.radio name="x" list={'foo', 'bar'} />
{code}

to work correctly, so what's the problem ?
                
> list={ 'foo': 'bar' } unusable with struts-tags such as <@s.radio /> on freemarker results.
> -------------------------------------------------------------------------------------------
>
>                 Key: WW-3173
>                 URL: https://issues.apache.org/jira/browse/WW-3173
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.8
>            Reporter: Antti Lankila
>            Priority: Minor
>             Fix For: 2.3.3
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira