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

readonly attribute on ww:textfield does not behave as a boolean

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Plugin - Tags
    • Labels:
      None

      Description

      See http://jira.opensymphony.com/browse/WW-1310

      The readonly attribute of ww:textfield is not checked on its value, but only on its existence.

      The simple/text.ftl contains this:

      <#if parameters.readonly?exists>
      readonly="readonly"<#rt/>
      </#if>

      But the documentation on ww:textfield (http://wiki.opensymphony.com/display/WW/textfield) says this:
      readonly false false Boolean Whether the input is readonly

      The simple/text.ftl should be changed as follows: (cfr disabled attribute)

      <#if parameters.readonly?default(false)>
      readonly="readonly"<#rt/>
      </#if>

        Attachments

          Activity

            People

            • Assignee:
              rainerh Rainer Hermanns
              Reporter:
              rainerh Rainer Hermanns
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: