Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3173

list={ 'foo': 'bar' } unusable with struts-tags such as <@s.radio /> on freemarker results.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 2.1.8
    • 2.3.3
    • None
    • None

    Description

      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>

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            alankila@bel.fi Antti Lankila
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: