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

AjaxButton forces rendering type="button"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 7.0.0-M2
    • 7.3.0, 8.0.0-M1
    • wicket
    • None

    Description

      Since WICKET-5594 AjaxButton forces rendering type="button". I understand, that this is the desired behavior if JavaScript is disabled. On the other hand it disables the browser behavior "submit form on enter" when JavaScript is enabled. I can't see any problem on using type="submit" in conjunction with AjaxButton, since the designated Methods onSubmit(AjaxRequestTarget target, Form<?> form), onAfterSubmit(AjaxRequestTarget target, Form<?> form) and onError(AjaxRequestTarget target, Form<?> form) will be called when pressing enter.

      The new behavior affects a lot of forms in our wicket applications we are currently porting from Wicket 6 to 7.

      Attachments

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              rfoerthe Roland Foerther
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: