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

Allow "class" attribute on Struts tags

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.20
    • Component/s: Other
    • Labels:
      None

      Description

      In building a JSP, and working on web related things outside of the Java environment, there are lots of tags which all receive the "class" attribute. The Struts developer must remember to call the attribute cssClass instead. Typing muscle memory drives me to half of the time typing "class" instead, which leads to HTML which reads, 'class="class java.util.HashMap"'

      Why not just allow "class" like the rest of the HTML world? Why do we need to be different? I have a billion things to remember when web developing, this shouldn't be one of them.

      We don't even have to to deprecate or obsolete cssClass, just also allow "class"... please!

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lukaszlenart Lukasz Lenart
                Reporter:
                ericlentz Eric Lentz
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: