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

Hidden fields silently drop 'label' attributes in Struts 2.3.20

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.20
    • 2.3.24
    • Expression Language
    • Freemarker 2.3.21

    Description

      Hidden fields (populated in a Freemarker template using <@s.hidden>) are silently dropping the 'label' attribute, as of Struts 2.3.20. Renaming the attribute to anything else works.

      We are using the s.hidden tag with a custom theme to display read-only fields on the page, and we make use of the label attribute.

      This change could be intended behavior for hidden fields, but it was not the case in 2.3.16.3, and I could not find anything in the changelog for 2.3.20.

      Attachments

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              thrawnca Mitth'raw'nuruodo
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: