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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Plugin - Tags
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: