Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-684

JavaScript complains if an AjaxButton has the name "submit"

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0-beta2
    • wicket
    • None

    Description

      When using an AjaxButton (former AjaxSubmitButton) with id "submit", the generated name attribute on the HTML tag is "submit" and it causes problems when trying to submit the form, because submit is already a function. There is code to handle that in FormComponent, but sadly fieldName.equals("submit") does not return true because PrependingStringBuffer.equals() is not implemented.

      Attachments

        Activity

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

          People

            jbq Jean-Baptiste Quenot
            jbq Jean-Baptiste Quenot
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment