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

Provide behavior that disables a button after click

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.0.0-M6
    • 7.10.0, 8.0.0-M9
    • wicket-extensions
    • None

    Description

      Wicket should provide a Behavior that can be assigned to (Ajax)Buttons and when clicked those buttons should be disabled via the HTML "disabled" attribute.
      For AjaxButtons the behavior should re-enable the button after processing the Ajax response.

      1)Run the app
      2)Click "submit" quickly several times
      3)Watch the console

      Attachments

        1. showcase-preventClick.zip
          28 kB
          Kamil
        2. block-comment-doublesubmit.png
          9 kB
          Kamil

        Activity

          People

            bitstorm Andrea Del Bene
            eximius Kamil
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: