Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-947

Default name "submit" for submit component breaks javascript function submit()

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.5
    • Fix Version/s: 5.2.0
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      When using submit component without specifying a name or id, the component is given the name "submit". This causes javascript error if a script later tries to invoke form.submit(), because the submit button has "hijacked" the submit function's name.

      A developer can easily stumble into this problem himself by naturally naming his button "submit", but tapestry shouldn't make the worst possible name the default one. Change the name/id to "submitButton" or something similar.

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard Lewis Ship
              Reporter:
              ingesolvoll Inge Solvoll

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment