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

CLONE -radiomap.ftl does not reconize OGNL value returned from a object.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0.6
    • 2.0.8
    • Plugin - Tags
    • None
    • Windows XP, Jdeveloper 10g, OC4j

    Description

      When I populate the value field in a <s:radio /> with a ognl value from the stack it is not recognized and the default value is not selected. The only way that I can make it work with the current template is to use a ognl value of %

      {'M'}

      to default the value I want to match to a string.

      To fix this I modified the radiomap.ftl code and changed the following check from:

      <#if tag.contains(parameters.nameValue, itemKey)>
      checked="checked"<#rt/>
      </#if>

      To:

      <#if tag.contains(parameters.nameValue, itemKeyStr)>
      checked="checked"<#rt/>
      </#if>

      and now the value field is recognized properly. The comparison that I changed it to was from the webwork2.4 radiomap.ftl

      Attachments

        Activity

          People

            mrdon Donald J. Brown
            srusu rusu stefan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: