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

Form attribute "includeContext" is being inserted as a dynamicAttribute

VotersStop watchingWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.15.1
    • 2.3.20
    • Other
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            lukaszlenart Lukasz Lenart
            perfnorm Jasper Rosenberg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment