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

Form attribute "includeContext" is being inserted as a dynamicAttribute

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.15.1
    • Fix Version/s: 2.3.20
    • Component/s: Other
    • Labels:
    • Environment:

      Freemarker

      Description

      If you use the "includeContext" attribute on the Form element, it shows up as an attribute on the rendered html form. This is because UIBean.getStandardAttributes() only includes "String" and list type attributes, but includeContext is a boolean.

      <@s.form action="myAction" includeContext=false>
      

      Can either fix by making includeContext a String (like validate is in Form), or having UIBean.getStandardAttributes() correctly detect it.

        Attachments

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              perfnorm Jasper Rosenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: